mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
fix: add env vars to control cache type for home server
This commit is contained in:
@@ -25,6 +25,7 @@ NEW_RELIC_DISTRIBUTED_TRACING_ENABLED=false
|
||||
NEW_RELIC_LOG_ENABLED=false
|
||||
NEW_RELIC_LOG_LEVEL=info
|
||||
|
||||
CACHE_TYPE=redis
|
||||
REDIS_URL=redis://cache
|
||||
|
||||
# (Optional) Caching Cross Service Tokens
|
||||
|
||||
@@ -27,7 +27,7 @@ export class ContainerConfigLoader {
|
||||
|
||||
const container = new Container()
|
||||
|
||||
const isConfiguredForHomeServer = env.get('DB_TYPE') === 'sqlite'
|
||||
const isConfiguredForHomeServer = env.get('CACHE_TYPE') === 'memory'
|
||||
|
||||
const newrelicWinstonFormatter = newrelicFormatter(winston)
|
||||
const winstonFormatters = [winston.format.splat(), winston.format.json()]
|
||||
|
||||
Reference in New Issue
Block a user