Add the base URL to the rewrite rules in the nginx config template (#779)
* Add the base URL to the rewrite rules in the nginx config template * Replace forced HTTPS with nginx variable * ci: fix inputs.platforms (#782) * ci: fix inputs.platforms * ci: remove inputs.platforms Co-authored-by: Revant Nandgaonkar <revant.one@gmail.com>
This commit is contained in:
parent
53a0e1a7ba
commit
76cfbd6468
@ -54,9 +54,9 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
rewrite ^(.+)/$ $1 permanent;
|
rewrite ^(.+)/$ $proxy_x_forwarded_proto://$http_host$1 permanent;
|
||||||
rewrite ^(.+)/index\.html$ $1 permanent;
|
rewrite ^(.+)/index\.html$ $proxy_x_forwarded_proto://$http_host$1 permanent;
|
||||||
rewrite ^(.+)\.html$ $1 permanent;
|
rewrite ^(.+)\.html$ $proxy_x_forwarded_proto://$http_host$1 permanent;
|
||||||
|
|
||||||
location ~ ^/files/.*.(htm|html|svg|xml) {
|
location ~ ^/files/.*.(htm|html|svg|xml) {
|
||||||
add_header Content-disposition "attachment";
|
add_header Content-disposition "attachment";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user