diff options
author | Anonymous <anon@anon.com> | 2022-01-07 19:14:17 +0100 |
---|---|---|
committer | Anonymous <anon@anon.com> | 2022-01-07 19:14:17 +0100 |
commit | 0e5fc73fe68593c53a17d7d1b0408dc4628bcec7 (patch) | |
tree | ab9332be1a1dd7cfdeb3e91fe62111df3f9f8931 | |
parent | 77146797394dec36e97c3964ad030fd4b9ce0c21 (diff) |
add example set-up (catalonia.r)
-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"; + }; + }; +} +``` |