Update lets_encrypt.markdown (#4442)

This commit is contained in:
cogneato 2018-01-17 07:49:13 -07:00 committed by Franck Nijhof
parent 12346dba05
commit a733d0417f

View File

@ -16,13 +16,8 @@ You should not use this if you are also using the [DuckDNS add-on]. The DuckDNS
Setup and manage a [Let's Encrypt](https://letsencrypt.org/) certificate. This will create a certificate on the first run and will auto-renew if the certificate is within 30 days of expiration. Setup and manage a [Let's Encrypt](https://letsencrypt.org/) certificate. This will create a certificate on the first run and will auto-renew if the certificate is within 30 days of expiration.
<p class='note warning'>
This add-on uses ports 80/443 to verify the certificate request. You will need to stop all other add-ons that also use these ports. If you don't need a port (like with https you don't need port 80) you can remove this from network config.
</p>
```json ```json
{ {
"challenge": "https",
"email": "example@example.com", "email": "example@example.com",
"domains": ["example.com", "mqtt.example.com", "hass.example.com"] "domains": ["example.com", "mqtt.example.com", "hass.example.com"]
} }
@ -30,7 +25,6 @@ This add-on uses ports 80/443 to verify the certificate request. You will need t
Configuration variables: Configuration variables:
- **challenge** (*Optional*): Default it use 443 ('https') you can change it to 'http' for use port 80.
- **email** (*Required*): Your email address for registration on Let's Encrypt. - **email** (*Required*): Your email address for registration on Let's Encrypt.
- **domains** (*Required*): A list of domains to create/renew the certificate. - **domains** (*Required*): A list of domains to create/renew the certificate.
@ -45,6 +39,6 @@ http:
ssl_key: /ssl/privkey.pem ssl_key: /ssl/privkey.pem
``` ```
If you use a other port as `8123` or a SSL proxy, change the port number. If you use another port such as `8123` or a SSL proxy, change the port number.
[DuckDNS add-on]: /addons/duckdns/ [DuckDNS add-on]: /addons/duckdns/