mirror of
https://github.com/YunoHost-Apps/discourse_ynh.git
synced 2024-09-03 18:26:18 +02:00
Update nginx.conf to protect against path traversal issue
This commit is contained in:
parent
bb90548957
commit
6b6cf90a18
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
}
|
}
|
||||||
|
|
||||||
location __PATH__ {
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
|
location __PATH__/ {
|
||||||
alias __FINALPATH__/public/;
|
alias __FINALPATH__/public/;
|
||||||
proxy_hide_header ETag;
|
proxy_hide_header ETag;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue