From 5e9f4d1ea344a806408c6613406662b3e75ece40 Mon Sep 17 00:00:00 2001 From: ibizaman <ibizapeanut@gmail.com> Date: Sun, 6 Aug 2023 22:36:31 -0700 Subject: [PATCH] add SSO for home-assistant --- modules/authelia.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/authelia.nix b/modules/authelia.nix index 4cf4006..e66a072 100644 --- a/modules/authelia.nix +++ b/modules/authelia.nix @@ -64,6 +64,12 @@ in description = "SMTP username."; example = "postmaster@smtp.example.com"; }; + + rules = lib.mkOption { + type = lib.types.listOf lib.types.anything; + description = "Rule based clients"; + default = []; + }; }; config = lib.mkIf cfg.enable { @@ -228,9 +234,9 @@ in proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Uri $request_uri; proxy_set_header X-Forwarded-Ssl on; - proxy_redirect http:// $scheme://; - proxy_http_version 1.1; proxy_set_header Connection ""; + proxy_redirect http:// $scheme://; + proxy_http_version 1.1; proxy_cache_bypass $cookie_session; proxy_no_cache $cookie_session; proxy_buffers 64 256k; @@ -242,8 +248,6 @@ in set_real_ip_from fc00::/7; real_ip_header X-Forwarded-For; real_ip_recursive on; - - # echo_read_request_body; ''; proxyPass = let