magpie/nginx: add extra headers to advertise quic
This commit is contained in:
@@ -6,6 +6,11 @@
|
|||||||
, system
|
, system
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
altSvc = ''
|
||||||
|
add_header Alt-Svc 'h3=":443"; ma=86400' always;
|
||||||
|
'';
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
@@ -229,6 +234,7 @@
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
root = "${project-cloud.packages.${system}.default}/public";
|
root = "${project-cloud.packages.${system}.default}/public";
|
||||||
|
extraConfig = altSvc;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -237,24 +243,27 @@
|
|||||||
http3 = true;
|
http3 = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
extraConfig = altSvc;
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
virtualHosts."miniflux.project-cloud.net" = {
|
virtualHosts."miniflux.project-cloud.net" = {
|
||||||
quic = true;
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
extraConfig = altSvc;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:5001";
|
proxyPass = "http://localhost:5001";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
virtualHosts.${config.services.gitea.settings.server.DOMAIN} = {
|
virtualHosts.${config.services.gitea.settings.server.DOMAIN} = {
|
||||||
quic = true;
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
extraConfig = altSvc;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://unix:${toString config.services.gitea.settings.server.HTTP_ADDR}";
|
proxyPass = "http://unix:${toString config.services.gitea.settings.server.HTTP_ADDR}";
|
||||||
};
|
};
|
||||||
@@ -267,6 +276,7 @@
|
|||||||
http3 = true;
|
http3 = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
extraConfig = altSvc;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualHosts."parts.project-cloud.net" = {
|
virtualHosts."parts.project-cloud.net" = {
|
||||||
@@ -274,6 +284,7 @@
|
|||||||
http3 = true;
|
http3 = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
extraConfig = altSvc;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualHosts."stats.project-cloud.net" = {
|
virtualHosts."stats.project-cloud.net" = {
|
||||||
@@ -281,6 +292,7 @@
|
|||||||
http3 = true;
|
http3 = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
extraConfig = altSvc;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:8002/";
|
proxyPass = "http://localhost:8002/";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user