From 5f6b2cb8d1b7d77e6f33676f448377ec9546a20e Mon Sep 17 00:00:00 2001 From: Stefano Apostolico Date: Fri, 29 Nov 2024 08:40:54 +0100 Subject: [PATCH] updates nginx conf --- docker/bin/entrypoint.sh | 2 +- docker/conf/nginx.conf.tpl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/bin/entrypoint.sh b/docker/bin/entrypoint.sh index 25d1f57b..f99e947f 100755 --- a/docker/bin/entrypoint.sh +++ b/docker/bin/entrypoint.sh @@ -22,7 +22,7 @@ case "$1" in django-admin upgrade --no-input nginx -c /conf/nginx.conf - redis-server /conf/redis.conf +# redis-server /conf/redis.conf exec uwsgi --ini /conf/uwsgi.ini ;; diff --git a/docker/conf/nginx.conf.tpl b/docker/conf/nginx.conf.tpl index 6326913e..64499a89 100644 --- a/docker/conf/nginx.conf.tpl +++ b/docker/conf/nginx.conf.tpl @@ -72,6 +72,8 @@ http { add_header X-Aurora-Version "${AURORA_VERSION}" always; add_header X-Aurora-Build "${AURORA_BUILD}" always; add_header X-Aurora-Time "${DOLLAR}date_gmt" always; + add_header X-Aurora-static-root "${STATIC_ROOT}" always; + add_header X-Aurora-static-url "${STATIC_URL}" always; location /404.html { root /var/nginx/;