Former-commit-id: e51b20e4ab
This commit is contained in:
Hadi
2024-06-19 23:07:47 +02:00
parent a02bee95de
commit f401067dd9
3 changed files with 23 additions and 10 deletions

View File

@@ -1,9 +1,16 @@
# Nginx Reverse Proxy & ACME certs
{config, ...}:{
{ config, ... }: {
services.nginx.enable = true;
security.acme = {
acceptTerms = true;
defaults.email = ${config.var.git.email};
defaults.email = config.var.git.email;
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
# test
services.nginx.virtualHosts."anotherhadi.com" = {
forceSSL = true;
enableACME = true;
locations."/".root = "/var/www/";
};
}