Cleanup
This commit is contained in:
parent
fc56e5ff3e
commit
cf20a94462
|
@ -70,7 +70,6 @@
|
||||||
} {
|
} {
|
||||||
hostNames = [ "gitea.c3d2.de" ];
|
hostNames = [ "gitea.c3d2.de" ];
|
||||||
proxyTo.host = hostRegistry.gitea.ip4;
|
proxyTo.host = hostRegistry.gitea.ip4;
|
||||||
# proxyProtocol = true;
|
|
||||||
} {
|
} {
|
||||||
hostNames = [ "grafana.hq.c3d2.de" ];
|
hostNames = [ "grafana.hq.c3d2.de" ];
|
||||||
proxyTo.host = hostRegistry.grafana.ip4;
|
proxyTo.host = hostRegistry.grafana.ip4;
|
||||||
|
|
|
@ -117,6 +117,7 @@ in
|
||||||
bind :::443 v4v6
|
bind :::443 v4v6
|
||||||
tcp-request inspect-delay 5s
|
tcp-request inspect-delay 5s
|
||||||
tcp-request content accept if { req.ssl_hello_type 1 }
|
tcp-request content accept if { req.ssl_hello_type 1 }
|
||||||
|
|
||||||
${lib.concatMapStrings ({ proxyTo, hostNames, matchArg, ... }:
|
${lib.concatMapStrings ({ proxyTo, hostNames, matchArg, ... }:
|
||||||
lib.concatMapStrings (hostname: ''
|
lib.concatMapStrings (hostname: ''
|
||||||
use_backend ${canonicalize proxyTo.host}-https if { req.ssl_sni -i ${matchArg} ${hostname} }
|
use_backend ${canonicalize proxyTo.host}-https if { req.ssl_sni -i ${matchArg} ${hostname} }
|
||||||
|
@ -124,6 +125,7 @@ in
|
||||||
) cfg.proxyHosts}
|
) cfg.proxyHosts}
|
||||||
|
|
||||||
${lib.concatMapStrings ({ proxyTo, proxyProtocol, ... }: ''
|
${lib.concatMapStrings ({ proxyTo, proxyProtocol, ... }: ''
|
||||||
|
|
||||||
backend ${canonicalize proxyTo.host}-https
|
backend ${canonicalize proxyTo.host}-https
|
||||||
server ${canonicalize proxyTo.host}-https ${proxyTo.host}:${toString proxyTo.httpsPort} weight 1 check ${lib.optionalString proxyProtocol "send-proxy"}
|
server ${canonicalize proxyTo.host}-https ${proxyTo.host}:${toString proxyTo.httpsPort} weight 1 check ${lib.optionalString proxyProtocol "send-proxy"}
|
||||||
'') cfg.proxyHosts}
|
'') cfg.proxyHosts}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user