fix proxy again

This commit is contained in:
Satria 2026-03-01 10:10:58 +07:00
commit cf6a723d10

View file

@ -1,4 +1,4 @@
{ homelab, ... }: let { homelab, lib, ... }: let
base = "proxy.${homelab.domain}"; base = "proxy.${homelab.domain}";
proxyMappings = { proxyMappings = {
"dns" = { dest = "http://localhost:8088"; auth = true; }; "dns" = { dest = "http://localhost:8088"; auth = true; };
@ -22,8 +22,7 @@ in {
enable = true; enable = true;
recommendedProxySettings = true; recommendedProxySettings = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
virtualHosts = builtins.mapAttrs (subdomain: cfg: { virtualHosts = lib.mapAttrs' (subdomain: cfg: lib.nameValuePair "${subdomain}.${base}" {
hostName = "${subdomain}.${base}";
useACMEHost = base; useACMEHost = base;
forceSSL = true; forceSSL = true;