1
0
Fork 0

fix(nginx): fix enable option for service

This commit is contained in:
Philipp 2025-05-25 00:49:54 +02:00
parent 5792e478af
commit 2ca22205aa
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
5 changed files with 18 additions and 24 deletions

View file

@ -14,9 +14,8 @@ in
options.${namespace}.services.cinny = {
enable = mkEnableOption "Cinny";
nginx = {
enable = mkEnableOption {
description = "Enable nginx for this service.";
type = types.bool;
enable = mkEnableOption "Enable nginx for this service."
// {
default = true;
};
};

View file

@ -27,10 +27,9 @@ in
};
nginx = {
enable = mkEnableOption {
description = "Enable nginx for this service.";
type = types.bool;
default = true;
enable = mkEnableOption "Enable nginx for this service."
// {
default = true;
};
};

View file

@ -14,10 +14,9 @@ in
options.${namespace}.services.forgejo = {
enable = mkEnableOption "Forgejo";
nginx = {
enable = mkEnableOption {
description = "Enable nginx for this service.";
type = types.bool;
default = true;
enable = mkEnableOption "Enable nginx for this service."
// {
default = true;
};
};

View file

@ -22,10 +22,9 @@ in
enable = mkEnableOption "Linkwarden";
package = lib.mkPackageOption pkgs.awesome-flake "linkwarden" { };
nginx = {
enable = mkEnableOption {
description = "Enable nginx for this service.";
type = types.bool;
default = true;
enable = mkEnableOption "Enable nginx for this service."
// {
default = true;
};
};
@ -249,7 +248,7 @@ in
virtualHosts."${cfg.domain}" = {
forceSSL = true;
useACMEHost = "stahl.sh";
locations."/".proxyPass = "http://:${cfg.host}" + builtins.toString cfg.port;
locations."/".proxyPass = "http://${cfg.host}:${builtins.toString cfg.port}";
};
};

View file

@ -20,17 +20,15 @@ in
};
nginx = {
enable = mkEnableOption {
description = "Enable nginx for this service.";
type = types.bool;
default = true;
enable = mkEnableOption "Enable nginx for this service."
// {
default = true;
};
};
redlib = {
enable = mkEnableOption {
description = "Whether or not to enable redlib.";
type = type.bool;
enable = mkEnableOption "Whether or not to enable redlib."
// {
default = true;
};