Partial rollout of HTTP/3

This commit is contained in:
minish 2024-10-13 19:14:29 -04:00
parent 6d61d05261
commit 4507d9bdc8
Signed by: min
SSH Key Fingerprint: SHA256:NFjjdbkd6u7aoMlcrDCVvz6o2UBtlAuPm8IQ2vhZ3Fg
5 changed files with 16 additions and 7 deletions

View File

@ -9,11 +9,14 @@ in {
services.nginx = { services.nginx = {
virtualHosts.${dom} = { virtualHosts.${dom} = {
forceSSL = true;
enableACME = true;
quic = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${toString httpIntPort}"; proxyPass = "http://127.0.0.1:${toString httpIntPort}";
}; };
forceSSL = true;
enableACME = true;
}; };
}; };

View File

@ -1,4 +1,4 @@
{...}: { {pkgs, ...}: {
imports = [ imports = [
./vcnotifier.nix ./vcnotifier.nix
# ./nodemusicbot.nix # ./nodemusicbot.nix
@ -15,6 +15,8 @@
services.nginx = { services.nginx = {
enable = true; enable = true;
package = pkgs.nginxQuic;
recommendedZstdSettings = true; recommendedZstdSettings = true;
recommendedGzipSettings = true; recommendedGzipSettings = true;
recommendedBrotliSettings = true; recommendedBrotliSettings = true;

View File

@ -6,11 +6,12 @@
in { in {
services.nginx = { services.nginx = {
virtualHosts.${dom} = { virtualHosts.${dom} = {
forceSSL = true;
enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${toString httpIntPort}"; proxyPass = "http://127.0.0.1:${toString httpIntPort}";
}; };
forceSSL = true;
enableACME = true;
}; };
streamConfig = '' streamConfig = ''
upstream gitea { upstream gitea {

View File

@ -6,6 +6,8 @@ in {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
quic = true;
locations."/" = { locations."/" = {
tryFiles = "$uri $uri/ =404"; tryFiles = "$uri $uri/ =404";
extraConfig = '' extraConfig = ''

View File

@ -9,11 +9,12 @@
in { in {
services.nginx = { services.nginx = {
virtualHosts.${domHost} = { virtualHosts.${domHost} = {
forceSSL = true;
enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${toString httpIntPort}"; proxyPass = "http://127.0.0.1:${toString httpIntPort}";
}; };
forceSSL = true;
enableACME = true;
}; };
virtualHosts.${domDelegate} = { virtualHosts.${domDelegate} = {
locations."/.well-known/matrix/client" = { locations."/.well-known/matrix/client" = {