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

@ -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}";
};
};