Configure aresix

This commit is contained in:
Pedro Rey Anca 2025-08-14 15:58:36 +02:00
parent cb8d24c6ce
commit 4011299399
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A
7 changed files with 289 additions and 2 deletions

View file

@ -0,0 +1,26 @@
{...}: {
security.acme = {
acceptTerms = true;
defaults.email = "personal+letsencrypt@peprolinbot.com";
};
networking.firewall.allowedTCPPorts = [80 443];
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"ha.campares.duckdns.org" = {
forceSSL = true;
enableACME = true;
extraConfig = ''
proxy_buffering off;
'';
locations."/" = {
proxyPass = "http://[::1]:8123";
proxyWebsockets = true;
};
};
};
};
}