mirror of
https://github.com/ivabus/nixos
synced 2024-11-27 02:35:07 +03:00
Fix http3
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
f4990de083
commit
bae66afecb
3 changed files with 25 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
my = import ../..;
|
my = import ../..;
|
||||||
ipv6_subnet = "2a05:3580:e41a:d600";
|
ipv6_subnet = "2a03:e2c0:47cb:5555";
|
||||||
ipv6_prefix = 64;
|
ipv6_prefix = 64;
|
||||||
ipv4_gateway = "192.168.1.1";
|
ipv4_gateway = "192.168.1.1";
|
||||||
ipv4_address = "192.168.1.3";
|
ipv4_address = "192.168.1.3";
|
||||||
|
@ -55,7 +55,7 @@ in {
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
background-color: #24273a;
|
background-color: #24273a;
|
||||||
color: #cad3f5;
|
color: #cad3f5;
|
||||||
font-family: "JetBrains Mono";
|
font-family: "JetBrains Mono", monospace;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 24pt;
|
font-size: 24pt;
|
||||||
|
@ -175,6 +175,7 @@ in {
|
||||||
locations."/".proxyPass = "http://localhost:8090";
|
locations."/".proxyPass = "http://localhost:8090";
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
serverAliases = [ "www.iva.bz" ];
|
serverAliases = [ "www.iva.bz" ];
|
||||||
};
|
};
|
||||||
|
@ -182,6 +183,7 @@ in {
|
||||||
locations."/".proxyPass = "http://${secrets.maas-address}:8083";
|
locations."/".proxyPass = "http://${secrets.maas-address}:8083";
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
serverAliases = [ "ивабус.рф" ];
|
serverAliases = [ "ивабус.рф" ];
|
||||||
};
|
};
|
||||||
|
@ -189,18 +191,35 @@ in {
|
||||||
locations."/".proxyPass = "http://${secrets.maas-address}:4533";
|
locations."/".proxyPass = "http://${secrets.maas-address}:4533";
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
};
|
};
|
||||||
virtualHosts."storage.ivabus.dev" = {
|
virtualHosts."storage.ivabus.dev" = {
|
||||||
locations."/".proxyPass = "http://${secrets.maas-address}:80";
|
locations."/".proxyPass = "http://${secrets.maas-address}:80";
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
quic = true;
|
||||||
|
http3 = true;
|
||||||
|
};
|
||||||
|
virtualHosts."storage.private.ivabus.dev" = {
|
||||||
|
locations."/".proxyPass = "http://${secrets.maas-address}:80";
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
};
|
};
|
||||||
virtualHosts."git.ivabus.dev" = {
|
virtualHosts."git.ivabus.dev" = {
|
||||||
locations."/".proxyPass = "http://${secrets.maas-address}:3000";
|
locations."/".proxyPass = "http://${secrets.maas-address}:3000";
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
quic = true;
|
||||||
|
http3 = true;
|
||||||
|
};
|
||||||
|
virtualHosts."b.iva.bz" = {
|
||||||
|
locations."/".proxyPass = "http://${secrets.maas-address}:8888";
|
||||||
|
enableACME = true;
|
||||||
|
addSSL = true;
|
||||||
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -208,4 +227,3 @@ in {
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,14 @@ in {
|
||||||
virtualHosts."ivabus.dev" = {
|
virtualHosts."ivabus.dev" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
|
|
||||||
root = pkgs.callPackage ../../pkgs/ivabus-dev.nix { };
|
root = pkgs.callPackage ../../pkgs/ivabus-dev.nix { };
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
error_page 404 /404.html;
|
error_page 404 /404.html;
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
'';
|
'';
|
||||||
serverAliases = [ "www.ivabus.dev" ];
|
serverAliases = [ "www.ivabus.dev" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,6 +9,7 @@ in {
|
||||||
virtualHosts."slides.ivabus.dev" = {
|
virtualHosts."slides.ivabus.dev" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
quic = true;
|
||||||
http3 = true;
|
http3 = true;
|
||||||
|
|
||||||
root = pkgs.callPackage ../../pkgs/slides-ivabus-dev.nix { };
|
root = pkgs.callPackage ../../pkgs/slides-ivabus-dev.nix { };
|
||||||
|
|
Loading…
Reference in a new issue