This repository has no description
607 B
26 lines
1{
2 networking.firewall.allowedTCPPorts = [
3 80
4 443
5 ];
6 security.acme.acceptTerms = true;
7 security.acme.defaults.email = "acme@lassul.us";
8
9 services.nginx = {
10 enable = true;
11 recommendedGzipSettings = true;
12 recommendedOptimisation = true;
13 recommendedTlsSettings = true;
14
15 enableReload = true;
16
17 virtualHosts.default = {
18 default = true;
19 locations."= /etc/os-release".extraConfig = ''
20 default_type text/plain;
21 alias /etc/os-release;
22 '';
23 locations."~ ^/.well-known/acme-challenge/".root = "/var/lib/acme/acme-challenge";
24 };
25 };
26}