From 99ea2112a679dd6027bfb4dd71ea222350205edd Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Sat, 9 Feb 2019 01:32:30 +0100 Subject: [PATCH] Update lets_encrypt.markdown (#8406) * Update lets_encrypt.markdown Added case for when using nginx proxy * Update lets_encrypt.markdown * Update lets_encrypt.markdown --- source/_addons/lets_encrypt.markdown | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/source/_addons/lets_encrypt.markdown b/source/_addons/lets_encrypt.markdown index c50d52fb273..fb00c62ecac 100644 --- a/source/_addons/lets_encrypt.markdown +++ b/source/_addons/lets_encrypt.markdown @@ -79,4 +79,26 @@ Use this in your `automations.yaml` to attempt certificate renewal each day at m addon: core_letsencrypt ``` +If you are using the [Nginx Proxy add-on] you will need need to stop this during the renewal process. This can be achieved by stopping the add-on whilst restarting the Let's Encrypt add-on. This can be achieved the following configuration: + +```yaml +- id: letsencrypt-renewal + alias: 'LetsEncrypt renewal' + trigger: + - platform: time + at: '00:00:00' + action: + - service: hassio.addon_stop + data: + addon: core_nginx_proxy + - service: hassio.addon_restart + data: + addon: core_letsencrypt + - delay: '00:01:30' + - service: hassio.addon_start + data: + addon: core_nginx_proxy +``` + [DuckDNS add-on]: /addons/duckdns/ +[Nginx Proxy add-on]: /addons/nginx_proxy/