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, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
2019-05-10 16:54:46 +02:00
|
|
|
|
[ ../../../lib/lxc-container.nix
|
|
|
|
|
../../../lib/shared.nix
|
|
|
|
|
../../../lib/admins.nix
|
2019-03-31 21:46:51 +02:00
|
|
|
|
./proxy.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
networking.hostName = "public-access-proxy";
|
2019-06-22 15:05:13 +02:00
|
|
|
|
networking.useNetworkd = true;
|
|
|
|
|
networking.defaultGateway = "172.22.99.4";
|
|
|
|
|
networking.useDHCP = lib.mkForce true;
|
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 = [
|
|
|
|
|
{
|
2019-04-07 22:18:26 +02:00
|
|
|
|
hostNames = [ "c3d2.arkom.men" ];
|
|
|
|
|
proxyTo = { host = "80.153.192.57"; httpPort = 80; httpsPort = 443; };
|
2019-03-31 21:46:51 +02:00
|
|
|
|
}
|
2019-05-06 19:31:33 +02:00
|
|
|
|
{
|
|
|
|
|
hostNames = [ "cloud.bombenverleih.de" "arkom.men" "kl.arkom.men" "cloud.arkom.men" ];
|
2019-06-22 15:05:13 +02:00
|
|
|
|
proxyTo = { host = "172.22.99.192"; httpPort = 80; httpsPort = 443; };
|
2019-05-06 19:31:33 +02:00
|
|
|
|
}
|
2019-03-31 21:46:51 +02:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
|
80
|
|
|
|
|
443
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
system.stateVersion = "18.09"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|