Modularized nginx config.
This commit is contained in:
parent
ea53feeb74
commit
1c62f3201e
9 changed files with 218 additions and 168 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue