os/mixin/common: Disable HTTP2 in nginx

See <https://nginx2root.com/>.
This commit is contained in:
Lorenz Leutgeb
2026-11-18 18:09:26 +01:00
parent b82ee82be1
commit 1506d05b90
8 changed files with 24 additions and 6 deletions
+3 -3
View File
@@ -148,7 +148,7 @@ D("radicle.dev", REG_NONE, DnsProvider(DSP_CLOUDFLARE),
A("seed", "65.108.87.205"),
AAAA("seed", "2a01:4f9:c011:b666::1"),
HTTPS("seed", 1, ".", "alpn=\"h2,h3\" ipv4hint=65.108.87.205 ipv6hint=2a01:4f9:c011:b666::1"),
HTTPS("seed", 1, ".", "alpn=\"h3\" ipv4hint=65.108.87.205 ipv6hint=2a01:4f9:c011:b666::1"),
SSHFP("seed", 4, 2, "ac7db28d3d05c52f3e2d67adca4654ce6766a1e8d7b6fab4c03b25ab435a613d"),
SSHFP("seed", 4, 1, "9033b89019264dbad5a744057166a5e1b7af92f7"),
@@ -201,7 +201,7 @@ D("radicle.network", REG_NONE, DnsProvider(DSP_CLOUDFLARE),
A("iris", "95.217.156.6", TTL("10m")),
AAAA("iris", "2a01:4f9:c010:dfaa::1", TTL("10m")),
HTTPS("iris", 1, ".", "alpn=\"h2\""),
// HTTPS("iris", 1, ".", "alpn=\"h2\""),
SSHFP("iris", 4, 1, "1ffe43af8f30c34373515fa24f1b9fe69532a9d5"),
SSHFP("iris", 4, 2, "715ce29a1ccdd7088b9fb40949ca186e736ff6d711163689560ffe54252c9d43"),
CNAME("_acme-challenge.iris", "_acme-challenge.iris-network.radicle.garden."),
@@ -214,7 +214,7 @@ D("radicle.network", REG_NONE, DnsProvider(DSP_CLOUDFLARE),
A("rosa", "5.161.85.124", TTL("10m")),
AAAA("rosa", "2a01:4ff:f0:abd3::1", TTL("10m")),
HTTPS("rosa", 1, ".", "alpn=\"h2\""),
// HTTPS("rosa", 1, ".", "alpn=\"h2\""),
SSHFP("rosa", 4, 1, "6ee4b941f49ece1601e238344f088f5a83712b91"),
SSHFP("rosa", 4, 2, "e2364a3e0f7728eaa53d40543f15e7c23409fe06e5b08c55d8f63ee00e963b0b"),
CNAME("_acme-challenge.rosa", "_acme-challenge.rosa-network.radicle.garden."),
+7 -1
View File
@@ -1,4 +1,8 @@
{config, ...}: let
{
config,
lib,
...
}: let
domain = "attic.radicle.dev";
port = 54862;
secret = "atticd.env";
@@ -30,6 +34,7 @@ in {
nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;
http2 = lib.mkForce false;
quic = true;
serverName = domain;
@@ -48,6 +53,7 @@ in {
enableACME = true;
forceSSL = true;
globalRedirect = domain;
http2 = lib.mkForce false;
redirectCode = 302;
};
};
+2
View File
@@ -2,6 +2,7 @@
pkgs,
config,
inputs,
lib,
...
}: {
systemd = {
@@ -39,6 +40,7 @@
services.nginx.virtualHosts."bootstrap.radicle.network" = {
enableACME = true;
forceSSL = true;
http2 = lib.mkForce false;
quic = true;
serverName = "bootstrap.radicle.network";
root = "/var/www/bootstrap.radicle.network";
+3 -1
View File
@@ -1,4 +1,4 @@
let
{lib, ...}: let
name = {
xyz = "files.radicle.xyz";
dev = "files.radicle.dev";
@@ -6,6 +6,7 @@ let
in {
services.nginx.virtualHosts.${name.xyz} = {
globalRedirect = name.dev;
http2 = lib.mkForce false;
redirectCode = 302;
enableACME = true;
forceSSL = true;
@@ -16,6 +17,7 @@ in {
};
services.nginx.virtualHosts.${name.dev} = {
http2 = lib.mkForce false;
root = "/var/www/${name.dev}";
extraConfig = ''
add_header 'Access-Control-Allow-Origin' '*';
+3
View File
@@ -1,5 +1,6 @@
{
config,
lib,
pkgs,
...
}: let
@@ -21,6 +22,7 @@ in {
nginx.virtualHosts.${domain} = {
enableACME = true;
forceSSL = true;
http2 = lib.mkForce false;
serverName = domain;
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString port}";
@@ -36,6 +38,7 @@ in {
enableACME = true;
forceSSL = true;
globalRedirect = domain;
http2 = lib.mkForce false;
redirectCode = 302;
};
};
+4 -1
View File
@@ -36,5 +36,8 @@ in {
];
};
};
services.nginx.virtualHosts.${config.networking.fqdn}.locations."/tmp/".alias = "/tmp/radicle/";
services.nginx.virtualHosts.${config.networking.fqdn} = {
http2 = lib.mkForce false;
locations."/tmp/".alias = "/tmp/radicle/";
};
}
+1
View File
@@ -140,6 +140,7 @@ in {
services.nginx.virtualHosts.${cfg.domain} = {
enableACME = true;
forceSSL = true;
http2 = lib.mkForce false;
quic = true;
locations."/".proxyPass = "http://[::1]:${builtins.toString cfg.settings.http.port}";
};
+1
View File
@@ -150,6 +150,7 @@ in {
virtualHosts.${cfg.domain} = {
enableACME = true;
forceSSL = true;
http2 = lib.mkForce false;
quic = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3340";