Browse Source

Added LE TLS challenge; e-mail to variable

master
Leo Maroni 2 years ago
parent
commit
270dc15f46
Signed by: em0lar GPG Key ID: 787A3A35970DBC6D
  1. 2
      tasks/main.yml
  2. 2
      templates/dashboard.yml
  3. 8
      templates/static.yml

2
tasks/main.yml

@ -4,7 +4,7 @@
state: directory
- name: Add traefik static config to host
copy:
template:
dest: "/volume/docker/traefik/config/traefik.yml"
src: "static.yml"

2
templates/dashboard.yml

@ -10,7 +10,7 @@ http:
api_https:
rule: "Host(`traefik.{{inventory_hostname}}`)"
tls:
certResolver: "le_tls"
certResolver: "le_http"
service: "api@internal"
entryPoints:
- "https"

8
files/static.yml → templates/static.yml

@ -18,10 +18,16 @@ entryPoints:
insecure: true
certificatesResolvers:
le_http:
acme:
httpChallenge:
entryPoint: http
email: {{ letsencrypt_email }}
storage: /letsencrypt/acme_http.json
le_tls:
acme:
tlsChallenge: {}
email: webmaster@labcode.de
email: {{ letsencrypt_email }}
storage: /letsencrypt/acme_tls.json
log:
Loading…
Cancel
Save