From ee72f38c3912a5ab0b31479b0a5090faefcf7b5d Mon Sep 17 00:00:00 2001 From: Drikus Roor Date: Tue, 6 Feb 2024 18:41:55 +0100 Subject: [PATCH] ci: Add subpath support ci: Add subpath support --- backend/aml/production_settings.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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,