Merge pull request #15 from linuxserver/default-tweaks

nginx conf tweaks
This commit is contained in:
Eric Nemchik 2022-08-23 16:53:02 -05:00 committed by GitHub
commit 8048d2acfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,10 +17,11 @@ server {
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
try_files $uri $uri/ /index.php?$query_string;
try_files $uri $uri/ /index.php$is_args$args;
}
## https://github.com/getgrav/grav/blob/develop/webserver-configs/nginx.conf
## Begin - Security
# deny all direct access for these folders
location ~* /(\.git|cache|bin|logs|backup|tests)/.*$ { return 403; }