diff options
-rw-r--r-- | ACME.md | 34 |
1 files changed, 33 insertions, 1 deletions
@@ -17,4 +17,36 @@ services.nginx.virtualHosts."myservice.r" = { enableACME = true; } security.acme.certs."myservice.r".server = "https://ca.r/acme/acme/directory"; -```
\ No newline at end of file +``` + +## example set-up + +``` +{ + services.nginx = { + enable = true; + recommendedTlsSettings = true; + + virtualHosts = { + "catalonia.r" = { + listen = [ + { addr = "catalonia.r"; port = 80; } + { addr = "catalonia.r"; port = 443; ssl = true; } + ]; + useACMEHost = "catalonia.r"; + sslCertificate = "/var/lib/acme/catalonia.r/fullchain.pem"; + sslCertificateKey = "/var/lib/acme/catalonia.r/key.pem"; + addSSL = true; + }; + }; + }; + + security.acme = { + acceptTerms = true; + certs."catalonia.r" = { + email = "xkey@irc.r"; + server = "https://ca.r/acme/acme/directory"; + }; + }; +} +``` |