17 lines
388 B
Nix
17 lines
388 B
Nix
# Nginx Reverse Proxy & ACME certs
|
|
{ config, ... }: {
|
|
services.nginx.enable = true;
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
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/default";
|
|
};
|
|
}
|