13 lines
313 B
Nix
13 lines
313 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf (config.services.actual.enable && config.host.reverse_proxy.enable) {
|
|
host = {
|
|
reverse_proxy.subdomains.${config.services.actual.subdomain} = {
|
|
target = "http://localhost:${toString config.services.actual.settings.port}";
|
|
};
|
|
};
|
|
};
|
|
}
|