nixos/nginx: add reuseport option

This commit is contained in:
Izorkin
2022-03-07 15:44:24 +03:00
committed by Yuka
parent 660a36f173
commit c508da303b
2 changed files with 14 additions and 3 deletions

View File

@@ -259,6 +259,7 @@ let
# UDP listener for **QUIC+HTTP/3
listen ${addr}:${toString port} http3 "
+ optionalString vhost.default "default_server "
+ optionalString vhost.reuseport "reuseport "
+ ";" else "")
+ "
@@ -266,6 +267,7 @@ let
+ optionalString (ssl && vhost.http2) "http2 "
+ optionalString ssl "ssl "
+ optionalString vhost.default "default_server "
+ optionalString vhost.reuseport "reuseport "
+ optionalString (extraParameters != []) (concatStringsSep " " extraParameters)
+ ";";