firefly-iii/nginx_app.conf

15 lines
355 B
Plaintext
Raw Permalink Normal View History

2017-11-29 12:15:44 -06:00
# prevent HTTPoxy vulnerability
fastcgi_param HTTP_PROXY "";
2017-04-26 19:45:26 -05:00
location / {
2018-08-01 00:24:19 -05:00
if ($http_x_forwarded_proto != "https") {
return 301 https://$host$request_uri;
}
2017-11-29 12:15:44 -06:00
# try to serve file directly, fallback to rewrite
2017-04-26 19:49:06 -05:00
try_files $uri @rewriteapp;
}
location @rewriteapp {
2017-11-29 12:15:44 -06:00
# rewrite all to index.php
2017-04-26 19:49:06 -05:00
rewrite ^(.*)$ /index.php$1 last;
}