Files
firefly-iii/nginx_app.conf

15 lines
355 B
Plaintext
Raw Permalink Normal View History

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