forked from potsda.mn/mobilizon
Fix a couple of issues in the nginx template
For instance, `X-Forwarded-Proto` is needed to properly generate the callback URL for 3rd-party auth through Ueberauth Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
75fc1f125a
commit
bacf8fc3be
|
@ -62,10 +62,11 @@ server {
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri @proxy;
|
proxy_pass http://localhost:4000;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Let's Encrypt keeps its files here
|
# Let's Encrypt keeps its files here
|
||||||
|
@ -74,10 +75,6 @@ server {
|
||||||
default_type "text/plain";
|
default_type "text/plain";
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass http://localhost:4000;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ ^/(js|css) {
|
location ~ ^/(js|css) {
|
||||||
root /home/mobilizon/live/priv/static;
|
root /home/mobilizon/live/priv/static;
|
||||||
etag off;
|
etag off;
|
||||||
|
@ -94,7 +91,7 @@ server {
|
||||||
|
|
||||||
error_page 500 501 502 503 504 @error;
|
error_page 500 501 502 503 504 @error;
|
||||||
location @error {
|
location @error {
|
||||||
root /home/tcit/dev/frama/mobilizon/priv/errors;
|
root /home/mobilizon/live/priv/errors;
|
||||||
try_files /error.html 502;
|
try_files /error.html 502;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue