Fix alt-svc

This commit is contained in:
patrickdk 2021-05-30 17:42:37 -04:00
parent c94f486e3e
commit 73f3f241a0

View file

@ -168,7 +168,7 @@ proxy_set_header Proxy "";
{{ $enable_ipv6 := eq (or ($.Env.ENABLE_IPV6) "") "true" }}
{{ $http2 := (or (and (not $.Env.DISABLE_HTTP2) "http2") "") }}
{{ $enable_http3 := eq (or ($.Env.ENABLE_HTTP3) "") "true" }}
{{ $alt_svc := or ($.Env.ALT_SVC) "h3-28=\":" $external_https_port "\"; ma=86400, h3-29=\":" $external_https_port "\"; ma=86400" }}
{{ $alt_svc := or ($.Env.ALT_SVC) (print "h3-28=\":" $external_https_port "\"; ma=86400, h3-29=\":" $external_https_port "\"; ma=86400") }}
server {
server_name _; # This is just an invalid value which will never trigger on a real hostname.