mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
Add extended redis & DB port configuration via environment variables (#330)
* Add database port configuration via env variable Add redis connection configuration via env variables * Add redis connection configuration via env variables
This commit is contained in:
parent
c60e852226
commit
d69470e207
6 changed files with 28 additions and 7 deletions
|
|
@ -27,7 +27,10 @@ import {
|
|||
useFactory: async () => ({
|
||||
redis: {
|
||||
host: process.env.REDIS_HOSTNAME || 'immich_redis',
|
||||
port: 6379,
|
||||
port: parseInt(process.env.REDIS_PORT || '6379'),
|
||||
db: parseInt(process.env.REDIS_DBINDEX || '0'),
|
||||
password: process.env.REDIS_PASSWORD || undefined,
|
||||
path: process.env.REDIS_SOCKET || undefined,
|
||||
},
|
||||
}),
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue