Modularized nginx config.

This commit is contained in:
Kevin Baensch 2019-06-22 23:58:08 +02:00
parent ea53feeb74
commit 1c62f3201e
9 changed files with 218 additions and 168 deletions

View file

@ -7,7 +7,7 @@ with lib;
../../options/machine.nix
];
config.machine = {
config.machine = rec {
hostName = "Ophanim";
administrators = [ { name = "derped"; id = 1337; } ];
domain = "ophanim.de";
@ -32,6 +32,14 @@ with lib;
"openssh"
"webblog"
];
vHosts = (let base = domain; in [
{ domain = base; service = "simple"; }
{ domain = "builder.${base}"; service = "hydra"; }
{ domain = "cache.${base}"; service = "cache"; }
{ domain = "storage.${base}"; service = "nextcloud"; }
{ domain = "mail.${base}"; service = "mail"; }
{ domain = "git.${base}"; service = "gitea"; }
]);
firewall = {
allowPing = false;
allowedUDPPorts = [ 22 80 443 ];