Nginx: Difference between revisions
imported>Srid →Sample setups: The email attribute is needed for trusted certs in browser |
imported>Fadenb m Mark security.acme.certs as optional in the example |
||
| Line 4: | Line 4: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.nginx = { | services.nginx = { | ||
enable = true; | enable = true; | ||
| Line 15: | Line 12: | ||
}; | }; | ||
} | } | ||
# Optional: You can configure the email address used with Let's Encrypt. | |||
# This way you get renewal reminders (automated by NixOS) as well as expiration emails. | |||
security.acme.certs = { | |||
"blog.example.com".email = "youremail@address.com"; | |||
}; | |||
</syntaxhighlight> | </syntaxhighlight> | ||