nix-config/hosts/containers/matemat/default.nix

30 lines
589 B
Nix

{ lib, ... }:
{
c3d2 = {
isInHq = true;
hq.interface = "eth0";
};
networking = {
hostName = "matemat";
interfaces.eth0.useDHCP = lib.mkForce true;
firewall.allowedTCPPorts = [ 80 443 ];
};
services.yammat.enable = true;
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts."matemat.hq.c3d2.de" = {
default = true;
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:3000";
};
};
security.acme = {
acceptTerms = true;
email = "mail@c3d2.de";
};
}