mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
fix(database): Set connection timeout (#1324)
This commit is contained in:
parent
5fb3ea465f
commit
b9b2b559a1
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ export const databaseConfig: PostgresConnectionOptions = {
|
|||
synchronize: false,
|
||||
migrations: [__dirname + '/../migrations/*.{js,ts}'],
|
||||
migrationsRun: true,
|
||||
connectTimeoutMS: 10000, // 10 seconds
|
||||
};
|
||||
|
||||
export const dataSource = new DataSource(databaseConfig);
|
||||
|
|
Loading…
Reference in a new issue