mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 20:36:52 +00:00
Add hint on auto-renewing certs using automations (#5261)
* Add hint on auto-renewing certs using automations * Minor changes
This commit is contained in:
parent
02ab1b4eb1
commit
5f97e6e4f2
@ -2,7 +2,7 @@
|
|||||||
layout: page
|
layout: page
|
||||||
title: "Let's Encrypt"
|
title: "Let's Encrypt"
|
||||||
description: "Automatically manage your SSL certificate using Let's Encrypt."
|
description: "Automatically manage your SSL certificate using Let's Encrypt."
|
||||||
date: 2017-04-30 13:28
|
date: 2018-04-18 10:55
|
||||||
sidebar: true
|
sidebar: true
|
||||||
comments: false
|
comments: false
|
||||||
sharing: true
|
sharing: true
|
||||||
@ -41,4 +41,24 @@ http:
|
|||||||
|
|
||||||
If you use another port such as `8123` or an SSL proxy, change the port number.
|
If you use another port such as `8123` or an SSL proxy, change the port number.
|
||||||
|
|
||||||
|
## {% linkable_title Enabling auto-renewals %}
|
||||||
|
|
||||||
|
Out of the box, the add-on will not automatically renew your certificate. In fact, it only starts, tries to get/renew your certificte, and then stops. It's up to you to manually start it again whenever your certificate comes close to expiry.
|
||||||
|
|
||||||
|
However, you can automate this process using Home Assistant.
|
||||||
|
|
||||||
|
Use this in your `automations.yaml` to attempt certificate renewal each day at midnight:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- id: letsencrypt-renewal
|
||||||
|
alias: "Let's Encrypt Renewal"
|
||||||
|
trigger:
|
||||||
|
- platform: time
|
||||||
|
at: '00:00:00'
|
||||||
|
action:
|
||||||
|
- service: hassio.addon_restart
|
||||||
|
data:
|
||||||
|
addon: core_letsencrypt
|
||||||
|
```
|
||||||
|
|
||||||
[DuckDNS add-on]: /addons/duckdns/
|
[DuckDNS add-on]: /addons/duckdns/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user