feat(web-servers/nginx): allow proxy configuration to specify locations

This commit is contained in:
Mohammad Rafiq 2025-06-13 06:12:23 +08:00
parent 887dff6840
commit 42b3a92d9b
No known key found for this signature in database

View file

@ -28,9 +28,11 @@ let
addSSL = sslCheck true false;
useACMEHost = sslCheck (mkRootDomain proxy.source) null;
acmeRoot = null; # needed for DNS validation
locations."/" = {
locations = {
"/" = {
proxyPass = proxy.target;
} // proxy.extraConfig;
} // proxy.locations;
};
}) cfg.proxies
);
@ -54,6 +56,10 @@ in
type = attrs;
default = { };
};
locations = lib.mkOption {
type = attrs;
default = { };
};
};
});
};