Nginx: Difference between revisions
imported>Bergey enableSSL is deprecated. Suggest addSSL, so port 80 is available for initial ACME. |
imported>Fleaz m Missing semicolon in config example |
||
| Line 12: | Line 12: | ||
enableACME = true; | enableACME = true; | ||
root = "/var/www/myhost.org"; | root = "/var/www/myhost.org"; | ||
} | }; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
This will set up nginx to serve files for <code>myhost.org</code>, automatically request an ACME SSL Certificate and will configure systemd timers to renew the certificate if required. | This will set up nginx to serve files for <code>myhost.org</code>, automatically request an ACME SSL Certificate and will configure systemd timers to renew the certificate if required. | ||