mirror of
https://github.com/YunoHost-Apps/snipeit_ynh.git
synced 2024-09-03 20:26:16 +02:00
Merge pull request #16 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
6b4a4c08c3
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
location ^~ __PATH__ {
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
|
location ^~ __PATH__/ {
|
||||||
alias __FINALPATH__/public/;
|
alias __FINALPATH__/public/;
|
||||||
try_files $uri $uri/ @snipe;
|
try_files $uri $uri/ @snipe;
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
Loading…
Add table
Reference in a new issue