File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 7474 working-directory : ./apps/sim
7575 env :
7676 DATABASE_URL : ${{ github.ref == 'refs/heads/main' && secrets.DATABASE_URL || secrets.STAGING_DATABASE_URL }}
77+ DATABASE_SSL_CERT : ${{ github.ref == 'refs/heads/main' && secrets.DATABASE_SSL_CERT || '' }}
7778 run : bunx drizzle-kit migrate
Original file line number Diff line number Diff line change @@ -7,5 +7,11 @@ export default {
77 dialect : 'postgresql' ,
88 dbCredentials : {
99 url : env . DATABASE_URL ,
10+ ssl : env . DATABASE_SSL_CERT
11+ ? {
12+ rejectUnauthorized : true ,
13+ ca : env . DATABASE_SSL_CERT ,
14+ }
15+ : undefined ,
1016 } ,
1117} satisfies Config
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ export const env = createEnv({
1616
1717 server : {
1818 // Core Database & Authentication
19- DATABASE_URL : z . string ( ) . url ( ) , // Primary database connection string
19+ DATABASE_URL : z . string ( ) . url ( ) , // Primary database connection string (without SSL cert)
20+ DATABASE_SSL_CERT : z . string ( ) . optional ( ) , // SSL certificate content for database connection
2021 BETTER_AUTH_URL : z . string ( ) . url ( ) , // Base URL for Better Auth service
2122 BETTER_AUTH_SECRET : z . string ( ) . min ( 32 ) , // Secret key for Better Auth JWT signing
2223 DISABLE_REGISTRATION : z . boolean ( ) . optional ( ) , // Flag to disable new user registration
You can’t perform that action at this time.
0 commit comments