fp/services/next/app/config/configs.ts

39 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-11-05 19:48:21 +00:00
2024-12-16 20:39:23 +00:00
// When adding env vars here, make sure to also add the assertion in ./server.ts
2024-11-05 19:48:21 +00:00
const patreonClientId = process.env.PATREON_CLIENT_ID!
const patreonClientSecret = process.env.PATREON_CLIENT_SECRET!
2024-12-12 07:23:46 +00:00
const keycloakClientId = process.env.KEYCLOAK_CLIENT_ID!
const keycloakClientSecret = process.env.KEYCLOAK_CLIENT_SECRET!
const keycloakIssuer = process.env.KEYCLOAK_ISSUER!
2024-12-16 20:39:23 +00:00
const keycloakLocalUrl = process.env.KEYCLOAK_LOCAL_URL!
const keycloakUrl = process.env.KEYCLOAK_URL!
2024-12-12 07:23:46 +00:00
const nextAuthSecret = process.env.NEXTAUTH_SECRET!
const nextAuthUrl = process.env.NEXTAUTH_URL!
2024-12-16 20:39:23 +00:00
const nextUrl = process.env.NEXT_PUBLIC_URL!
2024-11-05 19:48:21 +00:00
2024-12-12 07:23:46 +00:00
export interface ServerConfig {
2024-11-05 19:48:21 +00:00
patreonClientId: string;
patreonClientSecret: string;
2024-12-12 07:23:46 +00:00
keycloakClientId: string;
keycloakClientSecret: string;
keycloakIssuer: string;
2024-12-16 20:39:23 +00:00
keycloakLocalUrl: string;
keycloakUrl: string;
2024-12-12 07:23:46 +00:00
nextAuthSecret: string;
nextAuthUrl: string;
2024-12-16 20:39:23 +00:00
nextUrl: string;
2024-11-05 19:48:21 +00:00
}
2024-12-12 07:23:46 +00:00
export const configs: ServerConfig = {
2024-11-05 19:48:21 +00:00
patreonClientId,
patreonClientSecret,
2024-12-12 07:23:46 +00:00
keycloakClientId,
keycloakClientSecret,
keycloakIssuer,
2024-12-16 20:39:23 +00:00
keycloakLocalUrl,
keycloakUrl,
2024-12-12 07:23:46 +00:00
nextAuthSecret,
nextAuthUrl,
2024-12-16 20:39:23 +00:00
nextUrl,
2024-12-12 07:23:46 +00:00
}