24 lines
359 B
Nix
24 lines
359 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
self,
|
||
|
...
|
||
|
}: let
|
||
|
acmeEmailAddress = "admins@pub.solar";
|
||
|
webserverGroup = "hakkonaut";
|
||
|
in {
|
||
|
services.nginx = {
|
||
|
enable = true;
|
||
|
group = webserverGroup;
|
||
|
enableReload = true;
|
||
|
};
|
||
|
|
||
|
security.acme = {
|
||
|
acceptTerms = true;
|
||
|
email = acmeEmailAddress;
|
||
|
};
|
||
|
|
||
|
networking.firewall.allowedTCPPorts = [80 443];
|
||
|
}
|