add ssl option for database
This commit is contained in:
parent
a74f3888d1
commit
42a1bf9555
@ -26,4 +26,5 @@
|
|||||||
| DATABASE_TABLE_PREFIX | *empty* | prefix all tables if used within same database as other applications. |
|
| DATABASE_TABLE_PREFIX | *empty* | prefix all tables if used within same database as other applications. |
|
||||||
| DATABASE_LOGGING | `false` | if `true` all db interactions will be logged to stdout |
|
| DATABASE_LOGGING | `false` | if `true` all db interactions will be logged to stdout |
|
||||||
| DATABASE_MIGRATE | `true` | can be used in load balanced environments to only allow one container to perform migrations / manually execute migrations
|
| DATABASE_MIGRATE | `true` | can be used in load balanced environments to only allow one container to perform migrations / manually execute migrations
|
||||||
|
| DATABASE_SSL | `false` | if `true` will require ssl database connection |
|
||||||
|
|
||||||
|
|||||||
@ -110,6 +110,7 @@ export const imports = [
|
|||||||
synchronize: false,
|
synchronize: false,
|
||||||
type: configService.get<string>('DATABASE_DRIVER', 'sqlite') as any,
|
type: configService.get<string>('DATABASE_DRIVER', 'sqlite') as any,
|
||||||
url: configService.get<string>('DATABASE_URL', 'sqlite://data.sqlite'),
|
url: configService.get<string>('DATABASE_URL', 'sqlite://data.sqlite'),
|
||||||
|
ssl: configService.get<string>('DATABASE_SSL', 'false') === 'true',
|
||||||
entityPrefix: configService.get<string>('DATABASE_TABLE_PREFIX', ''),
|
entityPrefix: configService.get<string>('DATABASE_TABLE_PREFIX', ''),
|
||||||
logging: configService.get<string>('DATABASE_LOGGING', 'false') === 'true',
|
logging: configService.get<string>('DATABASE_LOGGING', 'false') === 'true',
|
||||||
entities,
|
entities,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user