# -*- 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'), )