diff --git a/backend/aml/production_settings.py b/backend/aml/production_settings.py index 24bb4dfa4..0920d738b 100644 --- a/backend/aml/production_settings.py +++ b/backend/aml/production_settings.py @@ -6,7 +6,11 @@ # Database # https://docs.djangoproject.com/en/3.0/ref/settings/#databases -STATIC_URL = '/django_static/' +STATIC_URL = '/server/static/' +MEDIA_URL = '/server/upload/' + +# Make sure Django runs on subpath /server +FORCE_SCRIPT_NAME = '/server/' DATABASES = { 'default': { @@ -23,6 +27,8 @@ CSRF_COOKIE_SAMESITE = 'None' SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True +SESSION_COOKIE_PATH = '/server/' +CSRF_COOKIE_PATH = '/server/' LOGGING = { 'version': 1,