Skip to content

Commit

Permalink
set ssl for adminjs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 14, 2024
1 parent e4e23b3 commit a469eea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions admin/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ export const dataSource = new DataSource({
database: process.env.DB_NAME || "blc",
entities: [User, Country, CarbonInputEntity, CostInput],
synchronize: false,
ssl:
process.env.NODE_ENV === "production"
? { rejectUnauthorized: false }
: false,
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"api:dev": "pnpm --filter api run start:dev",
"api:build": "pnpm --filter api run build",
"api:prod": "NODE_ENV=production pnpm --filter api run start:prod",
"admin:prod": "pnpm --filter admin run start:prod",
"admin:prod": "NODE_ENV=production pnpm --filter admin run start:prod",
"client:deps": "pnpm --filter client install",
"client:dev": "pnpm --filter client run dev",
"client:build": "pnpm --filter client run build",
Expand Down

0 comments on commit a469eea

Please sign in to comment.