Fix production config: use simple cache instead of Redis, fix Gunicorn to use production config

This commit is contained in:
DigiServer Developer
2025-12-05 21:46:31 +02:00
parent 8e43f2bd42
commit 3921a09c4e
5 changed files with 3 additions and 6 deletions

View File

@@ -80,11 +80,8 @@ class ProductionConfig(Config):
f'sqlite:///{os.path.join(_basedir, "instance", "dashboard.db")}'
)
# Redis Cache
CACHE_TYPE = 'redis'
CACHE_REDIS_HOST = os.getenv('REDIS_HOST', 'redis')
CACHE_REDIS_PORT = int(os.getenv('REDIS_PORT', 6379))
CACHE_REDIS_DB = 0
# Cache - use simple cache instead of Redis
CACHE_TYPE = 'simple'
CACHE_DEFAULT_TIMEOUT = 300
# Security

View File

@@ -49,4 +49,4 @@ exec gunicorn \
--timeout 120 \
--access-logfile - \
--error-logfile - \
"app.app:create_app()"
"app.app:create_app('production')"