39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
|
|
// When adding env vars here, make sure to also add the assertion in ./server.ts
|
|
|
|
const patreonClientId = process.env.PATREON_CLIENT_ID!
|
|
const patreonClientSecret = process.env.PATREON_CLIENT_SECRET!
|
|
const keycloakClientId = process.env.KEYCLOAK_CLIENT_ID!
|
|
const keycloakClientSecret = process.env.KEYCLOAK_CLIENT_SECRET!
|
|
const keycloakIssuer = process.env.KEYCLOAK_ISSUER!
|
|
const keycloakLocalUrl = process.env.KEYCLOAK_LOCAL_URL!
|
|
const keycloakUrl = process.env.KEYCLOAK_URL!
|
|
const nextAuthSecret = process.env.NEXTAUTH_SECRET!
|
|
const nextAuthUrl = process.env.NEXTAUTH_URL!
|
|
const nextUrl = process.env.NEXT_PUBLIC_URL!
|
|
|
|
export interface ServerConfig {
|
|
patreonClientId: string;
|
|
patreonClientSecret: string;
|
|
keycloakClientId: string;
|
|
keycloakClientSecret: string;
|
|
keycloakIssuer: string;
|
|
keycloakLocalUrl: string;
|
|
keycloakUrl: string;
|
|
nextAuthSecret: string;
|
|
nextAuthUrl: string;
|
|
nextUrl: string;
|
|
}
|
|
|
|
export const configs: ServerConfig = {
|
|
patreonClientId,
|
|
patreonClientSecret,
|
|
keycloakClientId,
|
|
keycloakClientSecret,
|
|
keycloakIssuer,
|
|
keycloakLocalUrl,
|
|
keycloakUrl,
|
|
nextAuthSecret,
|
|
nextAuthUrl,
|
|
nextUrl,
|
|
} |