formatting in proxy
This commit is contained in:
parent
582822cd5b
commit
5b2eb482df
1 changed files with 11 additions and 4 deletions
|
|
@ -222,10 +222,15 @@
|
|||
prev
|
||||
// (builtins.foldl' (
|
||||
val: vhost:
|
||||
let
|
||||
proxyProtocol = if self.nixosConfigurations.${name}.config.services.nginx.virtualHosts.${vhost}.listen == [] then false else
|
||||
let
|
||||
proxyProtocol =
|
||||
if
|
||||
self.nixosConfigurations.${name}.config.services.nginx.virtualHosts.${vhost}.listen == [ ]
|
||||
then
|
||||
false
|
||||
else
|
||||
true;
|
||||
in
|
||||
in
|
||||
val
|
||||
// {
|
||||
"${vhost}" = {
|
||||
|
|
@ -534,7 +539,9 @@
|
|||
option tcpka # Enable server TCP keep-alive (Phase 4)
|
||||
timeout server 60s # Increase from 30s for long-lived HTTPS
|
||||
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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue