Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
tips:ssl [2019/02/22 14:46] – [acme.sh integration for letsencrypt] scipio | tips:ssl [2020/08/17 11:17] – [certbot] scipio | ||
---|---|---|---|
Line 17: | Line 17: | ||
</ | </ | ||
+ | wildcard | ||
+ | < | ||
+ | certbot certonly \ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | ==== nginx ==== | ||
+ | < | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name nextcloud.csgalileo.org; | ||
+ | server_tokens off; | ||
+ | location / | ||
+ | root /var/www; | ||
+ | allow all; | ||
+ | } | ||
+ | |||
+ | location / { | ||
+ | return 301 https:// | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | server { | ||
+ | listen 443; | ||
+ | server_name nnextcloud.csgalileo.org; | ||
+ | | ||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | renew | ||
+ | < | ||
+ | certbot renew [--dry-run] | ||
+ | </ | ||
+ | |||
+ | automatic renew | ||
+ | < | ||
+ | systemctl status certbot.service | ||
+ | </ | ||
+ | |||
+ | / | ||
+ | < | ||
+ | max-log-backups = 0 | ||
+ | deploy-hook = systemctl reload nginx | ||
+ | </ | ||
===== acme.sh integration for letsencrypt ===== | ===== acme.sh integration for letsencrypt ===== | ||