create nginx virtual host for home.beta.rz.ens.wtf

This commit is contained in:
gabriel-doriath-dohler 2021-11-13 02:51:54 +01:00
parent 7dd205ad90
commit 0dfcfe243e
4 changed files with 29 additions and 11 deletions

View file

@ -16,7 +16,7 @@ with my.ipv6; # contains { standard, acme }
SOA = { SOA = {
nameServer = "ns1.${my.subZone}."; nameServer = "ns1.${my.subZone}.";
adminEmail = my.email; adminEmail = my.email;
serial = 2021111200; # Y M D Version serial = 2021111300; # Y M D Version
}; };
NS = [ NS = [
@ -35,6 +35,7 @@ with my.ipv6; # contains { standard, acme }
auth.AAAA = standard; auth.AAAA = standard;
push.AAAA = standard; push.AAAA = standard;
ns1.AAAA = standard; ns1.AAAA = standard;
beta.AAAA = public-cof-ips;
builders.subdomains = lib.mapAttrs (n: AAAA: { inherit AAAA; }) remoteBuilders; builders.subdomains = lib.mapAttrs (n: AAAA: { inherit AAAA; }) remoteBuilders;

View file

@ -11,6 +11,7 @@
./nextcloud.nix ./nextcloud.nix
./minecraft.nix ./minecraft.nix
./factorio.nix ./factorio.nix
./nginx.nix
# TODO monitoring # TODO monitoring
]; ];

View file

@ -19,16 +19,6 @@
}; };
services.nginx = { services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
# # Only allow PFS-enabled ciphers with AES256
# sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
virtualHosts = { virtualHosts = {
"nuage.beta.rz.ens.wtf" = { "nuage.beta.rz.ens.wtf" = {
forceSSL = true; forceSSL = true;

View file

@ -0,0 +1,26 @@
{ ... }:
{
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
# # Only allow PFS-enabled ciphers with AES256
# sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
virtualHosts = {
"home.beta.rz.ens.wtf" = {
serverAliases = [ "beta.rz.ens.wtf" ];
forceSSL = true;
enableACME = true;
root = "/var/public-cof/home";
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedUDPPorts = [ 80 443 ];
}