21 lines
519 B
Nix
21 lines
519 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options.services.actual = {
|
|
subdomain = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "actual";
|
|
description = "subdomain of base domain that actual will be hosted at";
|
|
};
|
|
};
|
|
|
|
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}";
|
|
};
|
|
};
|
|
};
|
|
}
|