nix-config/hosts/containers/public-access-proxy/default.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2021-09-10 22:59:40 +02:00
{ hostRegistry, config, pkgs, lib, ... }:
{
2021-02-22 11:45:12 +01:00
imports = [
./proxy.nix
./stats.nix
2021-02-22 11:45:12 +01:00
];
networking.hostName = "public-access-proxy";
networking.useNetworkd = true;
networking.interfaces.eth0 = {
2021-02-22 11:45:12 +01:00
ipv4.addresses = [{
address = "172.20.73.45";
prefixLength = 26;
}];
};
networking.defaultGateway = "172.20.73.1";
my.services.proxy = {
enable = true;
proxyHosts = [
{
hostNames = [ "grafana.hq.c3d2.de" ];
proxyTo.host = "grafana.serv.zentralwerk.org";
}
2021-09-04 18:09:05 +02:00
{
hostNames = [ "ticker.c3d2.de" ];
proxyTo.host = "ticker.serv.zentralwerk.org";
2021-09-04 18:09:05 +02:00
}
2021-09-05 02:28:48 +02:00
{
hostNames = [ "gitea.c3d2.de" ];
proxyTo.host = "172.20.73.53";
2021-09-05 02:28:48 +02:00
}
2021-06-23 21:26:51 +02:00
{
2021-09-03 20:49:02 +02:00
hostNames = [ "vps1.nixvita.de" "vps1.codetu.be" "nixvita.de" ];
proxyTo.host = "172.20.73.51";
2021-09-01 21:26:35 +02:00
}
2021-09-10 22:59:40 +02:00
{
hostNames = [ "stream.hq.c3d2.de" ];
proxyTo.host = hostRegistry.hosts.stream.ip4;
}
];
};
2021-02-22 11:45:12 +01:00
networking.firewall.allowedTCPPorts = [ 80 443 ];
system.stateVersion = "18.09";
}