harmonia: fix typos

This commit is contained in:
Sandro - 2024-01-11 21:44:35 +01:00
parent be9fdb7e8b
commit 9166e1b0fb
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 3 additions and 3 deletions

View File

@ -26,17 +26,17 @@ in
};
};
config = lib.mkIf cfg.enabled {
config = lib.mkIf cfg.enable {
services = {
harmonia.settings = lib.mkIf cfg.recommendedDefaults {
bind = "[::]:${toString cfg.port}";
settings.priority = 50; # prefer cache.nixos.org
};
nginx = lib.mkif cfg.configureNginx {
nginx = lib.mkIf cfg.configureNginx {
enable = true;
virtualHosts."${cfg.domain}".locations."/" = {
proxyPass = "http://127.0.0.1:${toString cfg.porcfg.port}";
proxyPass = "http://127.0.0.1:${toString cfg.port}";
# harmonia serves already compressed content and we want to preserve Content-Length
extraConfig = /* nginx */ ''
proxy_buffering off;