Deploy certs for esphome.ccchh.net using certbot role

This commit is contained in:
June 2023-08-02 23:27:40 +02:00 committed by julian
parent 6ac4bf8240
commit 542211ca25
4 changed files with 10 additions and 10 deletions

View file

@ -1,11 +1,10 @@
esphome__version: "2023.7.0" esphome__version: "2023.7.0"
cert__acme_account_email: jannes+letsencrypt-ccchh@grzb.de
cert__domains: certbot__version_spec: ""
certbot__acme_account_email_address: jannes+letsencrypt-ccchh@grzb.de
certbot__certificate_domains:
- "esphome.ccchh.net" - "esphome.ccchh.net"
cert__bind_9_host: authoritative-dns
cert__bind_9_zone: ccchh.net
cert__handlers:
- Restart `nginx.service`
nginx__version_spec: "" nginx__version_spec: ""
nginx__configurations: nginx__configurations:
- name: esphome - name: esphome

View file

@ -51,10 +51,10 @@ all:
engelsystem: engelsystem:
cert_hosts: cert_hosts:
hosts: hosts:
esphome:
engelsystem: engelsystem:
certbot_hosts: certbot_hosts:
hosts: hosts:
esphome:
zigbee2mqtt: zigbee2mqtt:
keycloak: keycloak:
wiki: wiki:

View file

@ -9,10 +9,10 @@ server {
server_name esphome.ccchh.net; server_name esphome.ccchh.net;
ssl_certificate /etc/ansible_certs/certs/esphome.ccchh.net/fullchain.pem; ssl_certificate /etc/letsencrypt/live/esphome.ccchh.net/fullchain.pem;
ssl_certificate_key /etc/ansible_certs/certs/esphome.ccchh.net/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/esphome.ccchh.net/privkey.pem;
# verify chain of trust of OCSP response using Root CA and Intermediate certs # verify chain of trust of OCSP response using Root CA and Intermediate certs
ssl_trusted_certificate /etc/ansible_certs/certs/esphome.ccchh.net/chain.pem; ssl_trusted_certificate /etc/letsencrypt/live/esphome.ccchh.net/chain.pem;
add_header Strict-Transport-Security "max-age=63072000" always; add_header Strict-Transport-Security "max-age=63072000" always;

View file

@ -10,6 +10,7 @@ map $host $upstream_acme_challenge_host {
zigbee2mqtt.ccchh.net 10.31.208.25:31820; zigbee2mqtt.ccchh.net 10.31.208.25:31820;
id.ccchh.net 10.31.206.12:31820; id.ccchh.net 10.31.206.12:31820;
keycloak-admin.ccchh.net 10.31.206.12:31820; keycloak-admin.ccchh.net 10.31.206.12:31820;
esphome.ccchh.net 10.31.208.24:31820;
default ""; default "";
} }