From c8d0c607696c9fbb47b891c08282245f17605d96 Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Mon, 6 Feb 2023 14:33:33 +0100 Subject: [PATCH] Remove datadir --- conf/.env.production | 2 +- conf/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/ {