catacomb: add port for mirror vhost
This commit is contained in:
parent
a5b364fbc1
commit
471930cb64
|
@ -5,10 +5,18 @@
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."mirror.catacomb.home" = {
|
virtualHosts."mirror.catacomb.home" = {
|
||||||
listen = [ { addr = "10.22.20.2"; } ];
|
listen = [
|
||||||
|
{ addr = "10.22.20.2"; }
|
||||||
|
# Binding to 10.22.20.2:80 here confuses the empyrean revproxy, even when the revproxy
|
||||||
|
# is configured with the same hostname, and it serves from fileserver.nix instead.
|
||||||
|
# This nonstandard port supports the revproxy use case.
|
||||||
|
{ addr = "10.22.20.2"; port = 7474; }
|
||||||
|
];
|
||||||
root = "/nas/doc/website/mirror";
|
root = "/nas/doc/website/mirror";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 7474 ];
|
||||||
|
|
||||||
users.users.nginx.extraGroups = ["nas"];
|
users.users.nginx.extraGroups = ["nas"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue