1
1
Fork 0
nixos-configs/machine/catacomb/mirror.nix

23 lines
654 B
Nix
Raw Normal View History

2024-01-08 20:10:46 +00:00
{ ... }:
{
# Configure nginx to serve /nas/doc/website/mirror/
services.nginx = {
enable = true;
virtualHosts."mirror.catacomb.home" = {
2024-01-17 12:13:15 +00:00
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; }
];
2024-01-08 20:10:46 +00:00
root = "/nas/doc/website/mirror";
};
};
2024-01-17 12:13:15 +00:00
networking.firewall.allowedTCPPorts = [ 7474 ];
2024-01-08 20:10:46 +00:00
users.users.nginx.extraGroups = ["nas"];
}