From 5436819fc8dd4e824f1faf1ad1aeefe8823f7ad1 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Tue, 5 Nov 2024 07:41:23 -0800 Subject: [PATCH] change calibre-web domain --- lotus-land-story/templates/Caddyfile | 14 ++++++++++++++ .../templates/authelia_configuration.yml | 4 ---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/lotus-land-story/templates/Caddyfile b/lotus-land-story/templates/Caddyfile index 2d4c362..8784d26 100644 --- a/lotus-land-story/templates/Caddyfile +++ b/lotus-land-story/templates/Caddyfile @@ -55,6 +55,20 @@ search.kejadlen.dev { # } # } +books.chislan.family { + forward_auth authelia:9091 { + uri /api/verify?rd=https://auth.chislan.family + copy_headers Remote-User + + ## This import needs to be included if you're relying on a trusted proxies configuration. + import trusted_proxy_list + } + + reverse_proxy calibre-web:8083 { + import trusted_proxy_list + } +} + books.kejadlen.dev { forward_auth authelia:9091 { uri /api/verify?rd=https://auth.{{ domain }} diff --git a/lotus-land-story/templates/authelia_configuration.yml b/lotus-land-story/templates/authelia_configuration.yml index ab277b9..beed258 100644 --- a/lotus-land-story/templates/authelia_configuration.yml +++ b/lotus-land-story/templates/authelia_configuration.yml @@ -17,10 +17,6 @@ authentication_backend: access_control: default_policy: deny rules: - - domain: docs.kejadlen.dev - policy: two_factor - subject: - - group:family - domain: "*.chislan.family" policy: two_factor subject: