File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff 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
153164include /config/nginx/proxy-confs/*.subdomain.conf;
165+ # enable proxy cache for auth
166+ proxy_cache_path cache/ keys_zone=auth_cache:10m;
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ proxy_send_timeout 240;
1515
1616# Proxy Cache and Cookie Settings
1717proxy_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
2019proxy_no_cache $cookie_session;
2120
You can’t perform that action at this time.
0 commit comments