From ebf024a141d8933972ff3b55c54da4aa1fdfba62 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 24 Jul 2020 09:18:25 +0200 Subject: [PATCH] services: letsencrypt: use Authelia on Syncthing UI --- letsencrypt/nginx/proxy-confs/syncthing.subdomain.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/letsencrypt/nginx/proxy-confs/syncthing.subdomain.conf b/letsencrypt/nginx/proxy-confs/syncthing.subdomain.conf index a674ff6..1ef36f0 100644 --- a/letsencrypt/nginx/proxy-confs/syncthing.subdomain.conf +++ b/letsencrypt/nginx/proxy-confs/syncthing.subdomain.conf @@ -13,6 +13,9 @@ server { # enable for ldap auth, fill in ldap details in ldap.conf #include /config/nginx/ldap.conf; + # enable for Authelia + include /config/nginx/authelia-server.conf; + location / { # enable the next two lines for http auth #auth_basic "Restricted"; @@ -20,7 +23,10 @@ server { # enable the next two lines for ldap auth #auth_request /auth; - #error_page 401 =200 /login; + #error_page 401 =200 /ldaplogin; + + # enable for Authelia + include /config/nginx/authelia-location.conf; include /config/nginx/proxy.conf; resolver 127.0.0.11 valid=30s;