Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Make URL for media, static and login redirect configurable

Ingo Terpelleb1bdf3f2789f
diff --git a/extras/docker/development/settings.py b/extras/docker/development/settings.py
index b344aafaa..8aabcfee2 100644
--- a/extras/docker/development/settings.py
+++ b/extras/docker/development/settings.py
@@ -59,10 +59,14 @@ SITE_URL = env.str('SITE_URL', 'http://localhost:8000')
# Path to uploaded files
# Absolute filesystem path to the directory that will hold user-uploaded files.
MEDIA_ROOT = env.str("DJANGO_MEDIA_ROOT", '/home/wger/media')
-MEDIA_URL = '/media/'
-
STATIC_ROOT = env.str("DJANGO_STATIC_ROOT", '/home/wger/static')
+# If you change these, adjust nginx alias definitions as well
+MEDIA_URL = env.str('MEDIA_URL', '/media/')
+STATIC_URL = env.str('STATIC_URL', '/static/')
+
+LOGIN_REDIRECT_URL = env.str('LOGIN_REDIRECT_URL', '/')
+
# Allow all hosts to access the application. Change if used in production.
ALLOWED_HOSTS = '*'