mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-03 19:42:10 +02:00
@@ -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/";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user