Commit 51cd917b authored by David Foucher's avatar David Foucher

Fix nginx configuration

parent 2c916702
Pipeline #2898 passed with stage
in 1 minute and 54 seconds
......@@ -9,7 +9,7 @@ server {
set $upstream_endpoint trefle;
location @gunicorn-master {
proxy_pass http://trefle:8000;
proxy_pass http://$upstream_endpoint:8000;
proxy_redirect off;
proxy_set_header Host $host;
}
......@@ -78,4 +78,18 @@ server {
location /legacy {
root /srv/trefle/legacy-backoffice;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
location /legacy/explorer {
alias /srv/trefle/legacy-backoffice/;
index index.html;
}
rewrite /legacy/(.*) /$1 break;
try_files $uri @gunicorn-master;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment