mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 17:25:08 +00:00
Add the base URL to the rewrite rules in the nginx config template
This commit is contained in:
parent
d3906b2620
commit
8b4e0b2f1d
1 changed files with 3 additions and 3 deletions
|
|
@ -54,9 +54,9 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
rewrite ^(.+)/$ $1 permanent;
|
rewrite ^(.+)/$ https://$http_host$1 permanent;
|
||||||
rewrite ^(.+)/index\.html$ $1 permanent;
|
rewrite ^(.+)/index\.html$ https://$http_host$1 permanent;
|
||||||
rewrite ^(.+)\.html$ $1 permanent;
|
rewrite ^(.+)\.html$ https://$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…
Reference in a new issue