refactor: moved subdomain options into proxy file
This commit is contained in:
parent
dfdd6bcc82
commit
9b02e30080
16 changed files with 84 additions and 73 deletions
|
@ -57,12 +57,6 @@ in {
|
|||
description = "The panoramax package to use";
|
||||
};
|
||||
|
||||
subdomain = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "subdomain of base domain that panoramax will be hosted at";
|
||||
default = "panoramax";
|
||||
};
|
||||
|
||||
database = {
|
||||
createDB = mkOption {
|
||||
type = types.bool;
|
||||
|
|
|
@ -3,6 +3,14 @@
|
|||
config,
|
||||
...
|
||||
}: {
|
||||
options.services.panoramax = {
|
||||
subdomain = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "subdomain of base domain that panoramax will be hosted at";
|
||||
default = "panoramax";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.services.panoramax.enable && config.host.reverse_proxy.enable) {
|
||||
host = {
|
||||
reverse_proxy.subdomains.${config.services.panoramax.subdomain} = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue