1
0
Fork 0
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:
Alexandre Aubin 2020-11-03 21:28:49 +01:00 committed by GitHub
commit bffb38c36e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;