fix proxy host forwarding

This commit is contained in:
Satria 2026-03-01 10:03:57 +07:00
commit 0c526f4911

View file

@ -23,8 +23,9 @@ in {
recommendedProxySettings = true; recommendedProxySettings = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
virtualHosts = builtins.mapAttrs (subdomain: cfg: { virtualHosts = builtins.mapAttrs (subdomain: cfg: {
forceSSL = true; hostName = "${subdomain}.${base}";
useACMEHost = base; useACMEHost = base;
forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = cfg.dest; proxyPass = cfg.dest;