basic nginx setup

This commit is contained in:
CDaut 2025-10-31 15:26:08 +01:00
parent 800b243448
commit 7113bb629a
Signed by: clara
GPG key ID: 223391B52FAD4463
5 changed files with 116 additions and 55 deletions

View file

@ -0,0 +1,30 @@
{ lib, pkgs, config, ... }:
{
services.nginx = {
enable = true;
virtualHosts = {
"pve.infra.cdaut.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "https://10.0.0.254:8006";
};
};
"corerouter.infra.cdaut.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://10.0.0.1:80";
};
};
};
};
security.acme = {
acceptTerms = true;
defaults.email = "acme@cdaut.de";
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}