Replace forced HTTPS with nginx variable

This commit is contained in:
Byju Abraham 2022-04-13 03:58:20 +00:00
parent 8b4e0b2f1d
commit 1143204d97

View file

@ -54,9 +54,9 @@ server {
}
location / {
rewrite ^(.+)/$ https://$http_host$1 permanent;
rewrite ^(.+)/index\.html$ https://$http_host$1 permanent;
rewrite ^(.+)\.html$ https://$http_host$1 permanent;
rewrite ^(.+)/$ $proxy_x_forwarded_proto://$http_host$1 permanent;
rewrite ^(.+)/index\.html$ $proxy_x_forwarded_proto://$http_host$1 permanent;
rewrite ^(.+)\.html$ $proxy_x_forwarded_proto://$http_host$1 permanent;
location ~ ^/files/.*.(htm|html|svg|xml) {
add_header Content-disposition "attachment";