Add traefik pilot connection

This commit is contained in:
Kacper Donat 2021-10-24 14:01:04 +02:00
parent 03f126dedd
commit f175c2e37e
2 changed files with 16 additions and 3 deletions

View File

@ -18,11 +18,16 @@ entryPoints:
websecure:
address: :443
{% if traefik_token is defined %}
pilot:
token: "{{ traefik_token }}"
{% endif %}
################################################################
# Traefik logs configuration
################################################################
log:
level: DEBUG
level: WARN
format: common
################################################################
@ -42,13 +47,13 @@ api:
################################################################
# Enable ping
#ping:
# ping:
# Name of the related entry point
#
# Optional
# Default: "traefik"
#
# entryPoint: traefik
# entryPoint: traefik
################################################################
# Docker configuration backend

View File

@ -16,6 +16,14 @@ services_to_restart: []
service_config:
traefik:
traefik_token: !vault |
$ANSIBLE_VAULT;1.1;AES256
66623665393638313039616464613563316437386566396238623937363238626535633937633536
6236653135363566333636633961343766323138633737610a346666636430303031373333376565
62643038666134386631306139613835623830346139356163376438643261646366386437343064
3365363639663862660a616239366130326538396431393537623964396530393531363665353361
65343938646438366264353837316263643634373639346334303939663732383832353439313330
3466323034336339626239633763393832383435623632386632
dashboard_users:
- name: kadet
password: !vault |