From 0e5fc73fe68593c53a17d7d1b0408dc4628bcec7 Mon Sep 17 00:00:00 2001 From: Anonymous Date: Fri, 7 Jan 2022 19:14:17 +0100 Subject: add example set-up (catalonia.r) --- ACME.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/ACME.md b/ACME.md index 12238c4..148ff46 100644 --- a/ACME.md +++ b/ACME.md @@ -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"; + }; + }; +} +``` -- cgit v1.2.3