From 5ebf2754c232ad854a1562260fd07e4b9ca22879 Mon Sep 17 00:00:00 2001 From: Satria Date: Tue, 3 Mar 2026 14:46:49 +0700 Subject: [PATCH] fix indents --- modules/system/homelab/proxy.nix | 60 ++++++++++++++++---------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/modules/system/homelab/proxy.nix b/modules/system/homelab/proxy.nix index cd72bbb..fdfaf97 100644 --- a/modules/system/homelab/proxy.nix +++ b/modules/system/homelab/proxy.nix @@ -34,35 +34,35 @@ in { }; services.nginx = { - enable = true; - recommendedProxySettings = true; - recommendedTlsSettings = true; - virtualHosts = { - "_" = { - default = true; - forceSSL = true; - useACMEHost = base; - locations."/".return = "404"; - }; - } // lib.mapAttrs' (subdomain: cfg: lib.nameValuePair (if subdomain == "@" then base else "${subdomain}.${base}") { - useACMEHost = base; + enable = true; + recommendedProxySettings = true; + recommendedTlsSettings = true; + virtualHosts = { + "_" = { + default = true; forceSSL = true; - - locations."/" = { - proxyPass = cfg.dest; - proxyWebsockets = true; - basicAuthFile = if cfg.auth then "/var/lib/nginx/.htpasswd" else null; - extraConfig = '' - proxy_set_header X-Auth-User $remote_user; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - client_max_body_size 50000M; - proxy_read_timeout 600s; - proxy_send_timeout 600s; - send_timeout 600s; - ''; - }; - }) proxy-mappings; - }; + useACMEHost = base; + locations."/".return = "404"; + }; + } // lib.mapAttrs' (subdomain: cfg: lib.nameValuePair (if subdomain == "@" then base else "${subdomain}.${base}") { + useACMEHost = base; + forceSSL = true; + + locations."/" = { + proxyPass = cfg.dest; + proxyWebsockets = true; + basicAuthFile = if cfg.auth then "/var/lib/nginx/.htpasswd" else null; + extraConfig = '' + proxy_set_header X-Auth-User $remote_user; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + client_max_body_size 50000M; + proxy_read_timeout 600s; + proxy_send_timeout 600s; + send_timeout 600s; + ''; + }; + }) proxy-mappings; + }; } \ No newline at end of file