mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Remove static postgres tls settings
They can be configured through `extra` in config.
This commit is contained in:
parent
87ea8a959d
commit
11a80d1b15
4 changed files with 3 additions and 11 deletions
|
@ -48,8 +48,9 @@ db:
|
|||
|
||||
# Extra Connection options
|
||||
#extra:
|
||||
# TODO: find another example
|
||||
# ssl: true
|
||||
# ssl:
|
||||
# host: localhost
|
||||
# rejectUnauthorized: false
|
||||
|
||||
# ┌─────────────────────┐
|
||||
#───┘ Redis configuration └─────────────────────────────────────
|
||||
|
|
|
@ -12,8 +12,4 @@ export default new DataSource({
|
|||
extra: config.db.extra,
|
||||
entities: entities,
|
||||
migrations: ["migration/*.js"],
|
||||
ssl: config.db.ssl ? {
|
||||
rejectUnauthorized: false, //TODO make configurable
|
||||
ca: process.env.DB_SSL_CERT,
|
||||
} : undefined,
|
||||
});
|
||||
|
|
|
@ -15,7 +15,6 @@ export type Source = {
|
|||
pass: string;
|
||||
disableCache?: boolean;
|
||||
extra?: { [x: string]: string };
|
||||
ssl?: boolean;
|
||||
};
|
||||
redis: {
|
||||
host: string;
|
||||
|
|
|
@ -223,10 +223,6 @@ export const db = new DataSource({
|
|||
maxQueryExecutionTime: 300,
|
||||
entities: entities,
|
||||
migrations: ["../../migration/*.js"],
|
||||
ssl: config.db.ssl ? {
|
||||
rejectUnauthorized: false,
|
||||
ca: process.env.DB_SSL_CERT,
|
||||
} : undefined,
|
||||
});
|
||||
|
||||
export async function initDb(force = false) {
|
||||
|
|
Loading…
Reference in a new issue