From 46fdf56f52a52acac7302d133f5d50939f767f38 Mon Sep 17 00:00:00 2001 From: Emmanuel Isenah Date: Sun, 10 Mar 2024 09:24:44 +0100 Subject: [PATCH] refactor: nginx --- nginx/default.staging.conf.template | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nginx/default.staging.conf.template b/nginx/default.staging.conf.template index 1f8fd56..43f00d7 100644 --- a/nginx/default.staging.conf.template +++ b/nginx/default.staging.conf.template @@ -6,7 +6,16 @@ server { root /var/www/certbot; } + location /static { + alias /app/staticfiles/; + } + + location /media { + alias /app/media/; + } + location / { - return 301 https://$host$request_uri; + proxy_pass http://${APP_HOST}:${APP_PORT}; + include /etc/nginx/proxy_params; } }