diff --git a/magpie/configuration.nix b/magpie/configuration.nix index 8ce21f6..49871e0 100644 --- a/magpie/configuration.nix +++ b/magpie/configuration.nix @@ -6,6 +6,11 @@ , system , ... }: +let + altSvc = '' + add_header Alt-Svc 'h3=":443"; ma=86400' always; + ''; +in { imports = [ ]; @@ -229,6 +234,7 @@ forceSSL = true; enableACME = true; root = "${project-cloud.packages.${system}.default}/public"; + extraConfig = altSvc; }; /* @@ -237,24 +243,27 @@ http3 = true; forceSSL = true; enableACME = true; + extraConfig = altSvc; }; - */ virtualHosts."miniflux.project-cloud.net" = { quic = true; http3 = true; forceSSL = true; enableACME = true; + extraConfig = altSvc; locations."/" = { proxyPass = "http://localhost:5001"; }; }; + */ virtualHosts.${config.services.gitea.settings.server.DOMAIN} = { quic = true; http3 = true; forceSSL = true; enableACME = true; + extraConfig = altSvc; locations."/" = { proxyPass = "http://unix:${toString config.services.gitea.settings.server.HTTP_ADDR}"; }; @@ -267,6 +276,7 @@ http3 = true; forceSSL = true; enableACME = true; + extraConfig = altSvc; }; virtualHosts."parts.project-cloud.net" = { @@ -274,6 +284,7 @@ http3 = true; forceSSL = true; enableACME = true; + extraConfig = altSvc; }; virtualHosts."stats.project-cloud.net" = { @@ -281,6 +292,7 @@ http3 = true; forceSSL = true; enableACME = true; + extraConfig = altSvc; locations."/" = { proxyPass = "http://localhost:8002/"; };