mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-10 20:05:38 +02:00
Update environment variables for cloud integration in Docker configurations
- Added GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET to both docker-compose files for cloud support. - Included GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET in the environment variables. - Updated the auth.ts file to enable social login providers for cloud deployments.
This commit is contained in:
parent
7ffec2f825
commit
b34aff1153
4 changed files with 32 additions and 17 deletions
|
@ -78,20 +78,22 @@ export function initAuth(allowedOrigins: string[]) {
|
|||
// Disable email verification for now
|
||||
requireEmailVerification: false,
|
||||
},
|
||||
// socialProviders: {
|
||||
// google: {
|
||||
// clientId: process.env.GOOGLE_CLIENT_ID!,
|
||||
// clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
|
||||
// },
|
||||
// github: {
|
||||
// clientId: process.env.GITHUB_CLIENT_ID!,
|
||||
// clientSecret: process.env.GITHUB_CLIENT_SECRET!,
|
||||
// },
|
||||
// twitter: {
|
||||
// clientId: process.env.TWITTER_CLIENT_ID!,
|
||||
// clientSecret: process.env.TWITTER_CLIENT_SECRET!,
|
||||
// },
|
||||
// },
|
||||
socialProviders: IS_CLOUD
|
||||
? {
|
||||
google: {
|
||||
clientId: process.env.GOOGLE_CLIENT_ID!,
|
||||
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
|
||||
},
|
||||
github: {
|
||||
clientId: process.env.GITHUB_CLIENT_ID!,
|
||||
clientSecret: process.env.GITHUB_CLIENT_SECRET!,
|
||||
},
|
||||
// twitter: {
|
||||
// clientId: process.env.TWITTER_CLIENT_ID!,
|
||||
// clientSecret: process.env.TWITTER_CLIENT_SECRET!,
|
||||
// },
|
||||
}
|
||||
: {},
|
||||
deleteUser: {
|
||||
enabled: true,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue