refactor(server): database config (#13730)

This commit is contained in:
Jason Rasmussen
2024-10-24 17:12:25 -04:00
committed by GitHub
parent 151ba9f1d9
commit fb995816a1
10 changed files with 87 additions and 84 deletions

View File

@@ -66,12 +66,14 @@ describe('getEnv', () => {
it('should use defaults', () => {
const { database } = getEnv();
expect(database).toEqual({
url: undefined,
host: 'database',
port: 5432,
name: 'immich',
username: 'postgres',
password: 'postgres',
config: expect.objectContaining({
type: 'postgres',
host: 'database',
port: 5432,
database: 'immich',
username: 'postgres',
password: 'postgres',
}),
skipMigrations: false,
vectorExtension: 'vectors',
});