hotpocket/services/backend/hotpocket_backend/settings/deployment/webapp.py
Tomek Wójcik b4338e2769
Some checks failed
CI / Checks (push) Failing after 13m2s
Release v1.0.0
2025-08-20 21:00:50 +02:00

27 lines
615 B
Python

# -*- coding: utf-8 -*-
# type: ignore
# flake8: noqa
from __future__ import annotations
from pathlib import Path
from hotpocket_backend.settings.webapp import *
DEBUG = False
ALLOWED_HOSTS = os.environ.get('HOTPOCKET_BACKEND_ALLOWED_HOSTS', '').split(',')
MIDDLEWARE = [
*MIDDLEWARE,
'whitenoise.middleware.WhiteNoiseMiddleware',
]
STORAGES['staticfiles'] = {
'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage',
}
CELERY_BEAT_SCHEDULE_FILENAME = '/srv/run/webapp-celerybeat-schedule'
UPLOADS_PATH = Path(
os.environ.get('HOTPOCKET_BACKEND_UPLOADS_PATH', '/srv/uploads'),
)