mirror of
https://github.com/YunoHost-Apps/discourse_ynh.git
synced 2024-09-03 18:26:18 +02:00
Merge pull request #63 from YunoHost-Apps/fix-path-traversal
[N.B. : App to be downgraded to level 4 if this ain't fixed soon...] Update nginx.conf to protect against path traversal issue
This commit is contained in:
commit
bffb38c36e
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@
|
|||
log_not_found off;
|
||||
}
|
||||
|
||||
location __PATH__ {
|
||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||
location __PATH__/ {
|
||||
alias __FINALPATH__/public/;
|
||||
proxy_hide_header ETag;
|
||||
|
||||
|
|
Loading…
Reference in a new issue