updated admin panel

This commit is contained in:
nvrl committed 2026-02-16 13:10:24 +01:00
1 parent 33ae19e349
commit 44f844bbd9
3 files changed
+8 -4

No files matched your search

+3 -3
View File
@@ -27,6 +27,6 @@ EOF
echo "Syncing flavors..."
python manage.py sync_flavors
# Start the server
echo "Starting server..."
python manage.py runserver 0.0.0.0:8000
# Start the server using Gunicorn
echo "Starting Gunicorn..."
exec gunicorn holy_backend.wsgi:application --bind 0.0.0.0:8000 --workers 3
+4 -1
View File
@@ -33,6 +33,7 @@ ALLOWED_HOSTS = [host.strip() for host in ALLOWED_HOSTS_STRING.split(',')]
# Application definition
INSTALLED_APPS = [
'whitenoise.runserver_nostatic',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -128,7 +129,8 @@ USE_TZ = True
STATIC_URL = 'static/'
STATIC_ROOT = BASE_DIR / 'staticfiles'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage'
WHITENOISE_INDEX_PAGE = True
MEDIA_URL = 'media/'
MEDIA_ROOT = BASE_DIR / 'media'
@@ -136,6 +138,7 @@ MEDIA_ROOT = BASE_DIR / 'media'
# --- Reverse Proxy Configuration ---
# These settings are crucial for running behind a proxy like Traefik
USE_X_FORWARDED_HOST = True
USE_X_FORWARDED_PORT = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
# Read CSRF trusted origins from environment variable
+1
View File
@@ -6,3 +6,4 @@ markdown>=3.5
Pillow>=10.2.0
drf-spectacular>=0.27.0
whitenoise>=6.6.0
gunicorn>=21.2.0