1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snipeit_ynh.git synced 2024-09-03 20:26:16 +02:00

Update nginx.conf to protect against path traversal issue

This commit is contained in:
Alexandre Aubin 2020-10-25 11:11:39 +01:00 committed by GitHub
parent 60cb787da9
commit 595f0163fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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