Skip to content

Commit

Permalink
ci: Add subpath support
Browse files Browse the repository at this point in the history
ci: Add subpath support
  • Loading branch information
drikusroor committed Feb 7, 2024
1 parent 7c44eb4 commit ee72f38
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion backend/aml/production_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand All @@ -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,
Expand Down

0 comments on commit ee72f38

Please sign in to comment.