feat(bomba): add nginx

This commit is contained in:
2026-05-23 14:10:45 +02:00
parent 135a109c08
commit 2aae138a6c
+42
View File
@@ -0,0 +1,42 @@
{ currentSystemEmail, ... }:
{
services.nginx = {
enable = false;
recommendedProxySettings = true;
recommendedTlsSettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
virtualHosts =
let
base = locations: {
inherit locations;
enableACME = true;
forceSSL = true;
};
proxy =
ipPort:
base {
"/".proxyPass = "http://" + ipPort + "/";
};
in
{
"patrickcanal.it" = {
root = "/var/www/patrickcanal.it/public/";
enableACME = true;
forceSSL = true;
};
"gitea.patrickcanal.it" = proxy "127.0.0.1:8001" // {
default = true;
};
"vaultwarden.patrickcanal.it" = proxy "172.18.0.2:8002" // {
default = true;
};
};
};
security.acme = {
acceptTerms = true;
defaults.email = currentSystemEmail;
};
}