diff --git a/conf/.env.production b/conf/.env.production index 8722cff..222eb53 100644 --- a/conf/.env.production +++ b/conf/.env.production @@ -15,7 +15,7 @@ DEFAULT_LANGUAGE="English" ## Leave unset to allow all hosts #ALLOWED_HOSTS="localhost,127.0.0.1,[::1]" -MEDIA_ROOT=__DATADIR__/images/ +MEDIA_ROOT=__FINALPATH__/images/ # Database configuration PGPORT=5432 diff --git a/conf/nginx.conf b/conf/nginx.conf index 570608a..8ad14a9 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,7 +8,7 @@ location __PATH__/ { } location /images/ { - alias __DATADIR__/images/; + alias __FINALPATH__/images/; } location /static/ {