diff --git a/support/nginx/mobilizon.conf b/support/nginx/mobilizon.conf index aff05d8ed..544170607 100644 --- a/support/nginx/mobilizon.conf +++ b/support/nginx/mobilizon.conf @@ -62,10 +62,11 @@ server { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; location / { - try_files $uri @proxy; + proxy_pass http://localhost:4000; } # Let's Encrypt keeps its files here @@ -74,10 +75,6 @@ server { default_type "text/plain"; } - location / { - proxy_pass http://localhost:4000; - } - location ~ ^/(js|css) { root /home/mobilizon/live/priv/static; etag off; @@ -94,7 +91,7 @@ server { error_page 500 501 502 503 504 @error; location @error { - root /home/tcit/dev/frama/mobilizon/priv/errors; + root /home/mobilizon/live/priv/errors; try_files /error.html 502; }