summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ACME.md34
1 files changed, 33 insertions, 1 deletions
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";
+ };
+ };
+}
+```