summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnonymous <anon@anon.com>2022-01-07 19:14:17 +0100
committerAnonymous <anon@anon.com>2022-01-07 19:14:17 +0100
commit0e5fc73fe68593c53a17d7d1b0408dc4628bcec7 (patch)
treeab9332be1a1dd7cfdeb3e91fe62111df3f9f8931
parent77146797394dec36e97c3964ad030fd4b9ce0c21 (diff)
add example set-up (catalonia.r)
-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";
+ };
+ };
+}
+```