formatting in proxy
This commit is contained in:
parent
582822cd5b
commit
5b2eb482df
1 changed files with 11 additions and 4 deletions
|
|
@ -223,7 +223,12 @@
|
||||||
// (builtins.foldl' (
|
// (builtins.foldl' (
|
||||||
val: vhost:
|
val: vhost:
|
||||||
let
|
let
|
||||||
proxyProtocol = if self.nixosConfigurations.${name}.config.services.nginx.virtualHosts.${vhost}.listen == [] then false else
|
proxyProtocol =
|
||||||
|
if
|
||||||
|
self.nixosConfigurations.${name}.config.services.nginx.virtualHosts.${vhost}.listen == [ ]
|
||||||
|
then
|
||||||
|
false
|
||||||
|
else
|
||||||
true;
|
true;
|
||||||
in
|
in
|
||||||
val
|
val
|
||||||
|
|
@ -534,7 +539,9 @@
|
||||||
option tcpka # Enable server TCP keep-alive (Phase 4)
|
option tcpka # Enable server TCP keep-alive (Phase 4)
|
||||||
timeout server 60s # Increase from 30s for long-lived HTTPS
|
timeout server 60s # Increase from 30s for long-lived HTTPS
|
||||||
timeout connect 3s # Reduce from 5s (local network)
|
timeout connect 3s # Reduce from 5s (local network)
|
||||||
server ${name} ${value.dest}:${builtins.toString value.httpsPort} ${if value.sendProxy == true then "send-proxy-v2" else ""} check inter 3000 rise 2 fall 3 maxconn 5000
|
server ${name} ${value.dest}:${builtins.toString value.httpsPort} ${
|
||||||
|
if value.sendProxy == true then "send-proxy-v2" else ""
|
||||||
|
} check inter 3000 rise 2 fall 3 maxconn 5000
|
||||||
|
|
||||||
''
|
''
|
||||||
) "" forwards}
|
) "" forwards}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue