fix syncthing proxy

fix syncthing proxy
This commit is contained in:
Joakim Repomaa
2025-02-07 19:33:29 +02:00
committed by Joakim Repomaa
parent 2d6e8607f3
commit 953d2b5c5d
2 changed files with 9 additions and 9 deletions

View File

@@ -3,7 +3,6 @@ let
cfg = config.modules.webserver;
nginxVhost = options: {
http2 = true;
forceSSL = true;
enableACME = true;
acmeRoot = lib.mkIf cfg.acme.dnsChallenge null;
@@ -29,6 +28,10 @@ let
vhost = lib.types.submodule {
options = {
http2 = lib.mkOption {
type = lib.types.bool;
default = true;
};
proxyBuffering = lib.mkOption {
type = lib.types.bool;
default = true;
@@ -71,7 +74,8 @@ in
recommendedOptimisation = true;
virtualHosts = lib.mapAttrs
(_: { proxyBuffering, locations }: nginxVhost {
(_: { proxyBuffering, locations, http2 }: nginxVhost {
inherit http2;
extraConfig = lib.mkIf (!proxyBuffering) ''
proxy_buffering off;
'';