Skip to content

Commit 42d8081

Browse files
committed
HTTP/3 add http3 variables conditionally
1 parent caffea0 commit 42d8081

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rootfs/etc/nginx/template/nginx.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{{ $servers := .Servers }}
33
{{ $cfg := .Cfg }}
44
{{ $IsIPV6Enabled := .IsIPV6Enabled }}
5+
{{ $IsQUICEnabled := .IsQUICEnabled }}
56
{{ $healthzURI := .HealthzURI }}
67
{{ $backends := .Backends }}
78
{{ $proxyHeaders := .ProxySetHeaders }}
@@ -288,8 +289,10 @@ http {
288289

289290
http2_max_concurrent_streams {{ $cfg.HTTP2MaxConcurrentStreams }};
290291

292+
{{ if $IsQUICEnabled }}
291293
http3_max_concurrent_streams {{ $cfg.HTTP3MaxConcurrentStreams }};
292294
http3_stream_buffer_size {{ $cfg.HTTP3StreamBufferSize }};
295+
{{ end }}
293296

294297
types_hash_max_size 2048;
295298
server_names_hash_max_size {{ $cfg.ServerNameHashMaxSize }};

0 commit comments

Comments
 (0)