mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 15:55:09 +00:00
refactor(nginx): include headers snippet via correct runtime path
This commit is contained in:
parent
57287e9cff
commit
c40113923c
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ server {
|
||||||
proxy_buffers 4 256k;
|
proxy_buffers 4 256k;
|
||||||
proxy_busy_buffers_size 256k;
|
proxy_busy_buffers_size 256k;
|
||||||
|
|
||||||
include resources/core/nginx/security_headers.conf;
|
include /etc/nginx/snippets/security_headers.conf;
|
||||||
|
|
||||||
set_real_ip_from ${UPSTREAM_REAL_IP_ADDRESS};
|
set_real_ip_from ${UPSTREAM_REAL_IP_ADDRESS};
|
||||||
real_ip_header ${UPSTREAM_REAL_IP_HEADER};
|
real_ip_header ${UPSTREAM_REAL_IP_HEADER};
|
||||||
|
|
@ -55,7 +55,7 @@ server {
|
||||||
rewrite ^(.+)\.html$ $1 permanent;
|
rewrite ^(.+)\.html$ $1 permanent;
|
||||||
|
|
||||||
location ~ ^/files/.*.(htm|html|svg|xml) {
|
location ~ ^/files/.*.(htm|html|svg|xml) {
|
||||||
include resources/core/nginx/security_headers.conf;
|
include /etc/nginx/snippets/security_headers.conf;
|
||||||
add_header Content-disposition "attachment";
|
add_header Content-disposition "attachment";
|
||||||
try_files /${FRAPPE_SITE_NAME_HEADER}/public/$uri @webserver;
|
try_files /${FRAPPE_SITE_NAME_HEADER}/public/$uri @webserver;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue