diff options
author | Ryan Lahfa <masterancpp@gmail.com> | 2024-01-12 19:49:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 19:49:18 +0100 |
commit | 3287441158d36d15257902e4579d31ef422b130f (patch) | |
tree | 06863073f17618922861883358181a8c27b9bf77 /nixos/modules/services/web-servers | |
parent | a2498cdd00172b5da68b9c201dd5130f1e32d563 (diff) | |
parent | 2fb0b52c5072da82e31ca58b46a673fd3876e0d5 (diff) | |
download | nixlib-3287441158d36d15257902e4579d31ef422b130f.tar nixlib-3287441158d36d15257902e4579d31ef422b130f.tar.gz nixlib-3287441158d36d15257902e4579d31ef422b130f.tar.bz2 nixlib-3287441158d36d15257902e4579d31ef422b130f.tar.lz nixlib-3287441158d36d15257902e4579d31ef422b130f.tar.xz nixlib-3287441158d36d15257902e4579d31ef422b130f.tar.zst nixlib-3287441158d36d15257902e4579d31ef422b130f.zip |
Merge pull request #275484 from Izorkin/update-nginx-http3
nixos/nginx: disable automatic advertise of HTTP/3 protocol support
Diffstat (limited to 'nixos/modules/services/web-servers')
-rw-r--r-- | nixos/modules/services/web-servers/nginx/default.nix | 6 | ||||
-rw-r--r-- | nixos/modules/services/web-servers/nginx/vhost-options.nix | 7 |
2 files changed, 3 insertions, 10 deletions
diff --git a/nixos/modules/services/web-servers/nginx/default.nix b/nixos/modules/services/web-servers/nginx/default.nix index 91b17bfc09fe..d74e3a43de2f 100644 --- a/nixos/modules/services/web-servers/nginx/default.nix +++ b/nixos/modules/services/web-servers/nginx/default.nix @@ -408,12 +408,6 @@ let ssl_conf_command Options KTLS; ''} - ${optionalString (hasSSL && vhost.quic && vhost.http3) - # Advertise that HTTP/3 is available - '' - add_header Alt-Svc 'h3=":$server_port"; ma=86400'; - ''} - ${mkBasicAuth vhostName vhost} ${optionalString (vhost.root != null) "root ${vhost.root};"} diff --git a/nixos/modules/services/web-servers/nginx/vhost-options.nix b/nixos/modules/services/web-servers/nginx/vhost-options.nix index 64a95afab9f4..ea98439d3823 100644 --- a/nixos/modules/services/web-servers/nginx/vhost-options.nix +++ b/nixos/modules/services/web-servers/nginx/vhost-options.nix @@ -235,9 +235,9 @@ with lib; which can be achieved by setting `services.nginx.package = pkgs.nginxQuic;` and activate the QUIC transport protocol `services.nginx.virtualHosts.<name>.quic = true;`. - Note that HTTP/3 support is experimental and - *not* yet recommended for production. + Note that HTTP/3 support is experimental and *not* yet recommended for production. Read more at https://quic.nginx.org/ + HTTP/3 availability must be manually advertised, preferably in each location block. ''; }; @@ -250,8 +250,7 @@ with lib; which can be achieved by setting `services.nginx.package = pkgs.nginxQuic;` and activate the QUIC transport protocol `services.nginx.virtualHosts.<name>.quic = true;`. - Note that special application protocol support is experimental and - *not* yet recommended for production. + Note that special application protocol support is experimental and *not* yet recommended for production. Read more at https://quic.nginx.org/ ''; }; |