mirror of
https://github.com/linuxserver/docker-bookstack.git
synced 2026-02-20 02:30:30 +08:00
nginx conf tweaks
This commit is contained in:
parent
df24c3860e
commit
a50d975a98
@ -12,18 +12,12 @@ server {
|
||||
root /app/www/public;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
error_page 599 = @noauth;
|
||||
|
||||
location @noauth {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location / {
|
||||
# enable for basic auth
|
||||
#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;
|
||||
}
|
||||
|
||||
location ~ ^(.+\.php)(.*)$ {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user