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 [2019/09/16 13:58] – [certbot] scipio | ||
---|---|---|---|
Line 17: | Line 17: | ||
</ | </ | ||
+ | wildchart | ||
+ | < | ||
+ | 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 / | ||
+ | | ||
+ | } | ||
+ | </ | ||
===== acme.sh integration for letsencrypt ===== | ===== acme.sh integration for letsencrypt ===== | ||