2019-03-31 21:46:51 +02:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2021-02-22 11:45:12 +01:00
|
|
|
|
imports = [
|
2021-06-23 21:59:10 +02:00
|
|
|
|
# ../../../lib/lxc-container.nix
|
|
|
|
|
# ../../../lib/shared.nix
|
|
|
|
|
# ../../../lib/admins.nix
|
2021-02-22 11:45:12 +01:00
|
|
|
|
./proxy.nix
|
|
|
|
|
];
|
2019-03-31 21:46:51 +02:00
|
|
|
|
|
|
|
|
|
networking.hostName = "public-access-proxy";
|
2019-06-22 15:05:13 +02:00
|
|
|
|
networking.useNetworkd = true;
|
2020-05-22 19:07:07 +02:00
|
|
|
|
networking.interfaces.eth0 = {
|
2021-02-22 11:45:12 +01:00
|
|
|
|
ipv4.addresses = [{
|
|
|
|
|
address = "172.20.73.45";
|
|
|
|
|
prefixLength = 26;
|
|
|
|
|
}];
|
2020-05-22 19:07:07 +02:00
|
|
|
|
};
|
|
|
|
|
networking.defaultGateway = "172.20.73.1";
|
2019-03-31 21:46:51 +02:00
|
|
|
|
|
2019-04-01 03:15:39 +02:00
|
|
|
|
my.services.proxy = {
|
2019-03-31 21:46:51 +02:00
|
|
|
|
enable = true;
|
|
|
|
|
proxyHosts = [
|
2021-06-24 21:43:34 +02:00
|
|
|
|
# {
|
|
|
|
|
# hostNames = [ "cloud.bombenverleih.de" "unifi.arkom.men" ];
|
|
|
|
|
# proxyTo = {
|
|
|
|
|
# host = "172.22.99.192";
|
|
|
|
|
# httpPort = 80;
|
|
|
|
|
# httpsPort = 443;
|
|
|
|
|
# };
|
|
|
|
|
# }
|
2020-05-22 18:24:37 +02:00
|
|
|
|
{
|
|
|
|
|
hostNames = [ "grafana.hq.c3d2.de" ];
|
2021-02-22 11:45:12 +01:00
|
|
|
|
proxyTo = {
|
|
|
|
|
host = "grafana.serv.zentralwerk.dn42";
|
|
|
|
|
httpPort = 80;
|
|
|
|
|
httpsPort = 443;
|
|
|
|
|
};
|
2020-05-22 18:24:37 +02:00
|
|
|
|
}
|
2021-06-24 21:43:34 +02:00
|
|
|
|
# {
|
|
|
|
|
# hostNames = [ "kibana.hq.c3d2.de" "kibana-es.hq.c3d2.de" ];
|
|
|
|
|
# proxyTo = {
|
|
|
|
|
# host = "kibana.serv.zentralwerk.dn42";
|
|
|
|
|
# httpPort = 80;
|
|
|
|
|
# httpsPort = 443;
|
|
|
|
|
# };
|
|
|
|
|
# }
|
|
|
|
|
# {
|
|
|
|
|
# hostNames = [ "robo1.hq.c3d2.de" ];
|
|
|
|
|
# proxyTo = {
|
|
|
|
|
# host = "172.20.79.62";
|
|
|
|
|
# httpPort = 80;
|
|
|
|
|
# };
|
|
|
|
|
# }
|
|
|
|
|
# {
|
|
|
|
|
# hostNames = [ "robots.datenspuren.de" ];
|
|
|
|
|
# proxyTo = {
|
|
|
|
|
# host = "172.22.99.170";
|
|
|
|
|
# httpPort = 80;
|
|
|
|
|
# httpsPort = 443;
|
|
|
|
|
# };
|
|
|
|
|
# }
|
|
|
|
|
# {
|
|
|
|
|
# hostNames = [ "error.hq.c3d2.de" ];
|
|
|
|
|
# proxyTo = {
|
|
|
|
|
# host = "172.20.73.47";
|
|
|
|
|
# httpPort = 80;
|
|
|
|
|
# httpsPort = 443;
|
|
|
|
|
# };
|
|
|
|
|
# }
|
2021-06-23 21:26:51 +02:00
|
|
|
|
{
|
|
|
|
|
hostNames = [ "nixvita.de" "www.nixvita.de" ];
|
|
|
|
|
proxyTo = {
|
|
|
|
|
host = "172.22.99.174";
|
|
|
|
|
httpPort = 80;
|
|
|
|
|
httpsPort = 443;
|
|
|
|
|
};
|
|
|
|
|
}
|
2021-09-01 21:26:35 +02:00
|
|
|
|
{
|
|
|
|
|
hostNames = [ "srv1.nixvita.de" "*.srv1.www.nixvita.de" "srv1.codetu.be" "*.srv1.codetu.be" ];
|
|
|
|
|
proxyTo = {
|
|
|
|
|
host = "172.20.73.51";
|
|
|
|
|
httpPort = 80;
|
|
|
|
|
httpsPort = 443;
|
|
|
|
|
};
|
|
|
|
|
}
|
2019-03-31 21:46:51 +02:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2021-02-22 11:45:12 +01:00
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
2019-03-31 21:46:51 +02:00
|
|
|
|
|
|
|
|
|
system.stateVersion = "18.09"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|