Skip to content

Commit 012e729

Browse files
committed
emergency fixes to default and proxy.conf
1 parent dbfe483 commit 012e729

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

root/defaults/default

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@ server {
4141
client_max_body_size 0;
4242

4343
location / {
44+
# enable the next two lines for http auth
45+
#auth_basic "Restricted";
46+
#auth_basic_user_file /config/nginx/.htpasswd;
47+
48+
# enable the next two lines for ldap auth
49+
#auth_request /auth;
50+
#error_page 401 =200 /ldaplogin;
51+
52+
# enable for Authelia
53+
#include /config/nginx/authelia-location.conf;
54+
4455
try_files $uri $uri/ /index.html /index.php?$args =404;
4556
}
4657

@@ -151,3 +162,5 @@ server {
151162

152163
# enable subdomain method reverse proxy confs
153164
include /config/nginx/proxy-confs/*.subdomain.conf;
165+
# enable proxy cache for auth
166+
proxy_cache_path cache/ keys_zone=auth_cache:10m;

root/defaults/proxy.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ proxy_send_timeout 240;
1515

1616
# Proxy Cache and Cookie Settings
1717
proxy_cache_bypass $cookie_session;
18-
proxy_cache_path cache/ keys_zone=auth_cache:10m;
1918
#proxy_cookie_path / "/; Secure"; # enable at your own risk, may break certain apps
2019
proxy_no_cache $cookie_session;
2120

0 commit comments

Comments
 (0)