[TRAEFIK] Add template + variable
This commit is contained in:
parent
924078fb3f
commit
db6cdfae3b
4 changed files with 39 additions and 20 deletions
53
roles/traefik/templates/config/traefik.yml.j2
Normal file
53
roles/traefik/templates/config/traefik.yml.j2
Normal file
|
@ -0,0 +1,53 @@
|
|||
log:
|
||||
level: DEBUG
|
||||
|
||||
api:
|
||||
dashboard: true
|
||||
|
||||
accessLog:
|
||||
filePath: "/var/log/traefik/access.log"
|
||||
format: json
|
||||
|
||||
entryPoints:
|
||||
http:
|
||||
address: ":80"
|
||||
http:
|
||||
redirections:
|
||||
entryPoint:
|
||||
to: https
|
||||
scheme: https
|
||||
https:
|
||||
address: ":443"
|
||||
metrics:
|
||||
address: ":8080"
|
||||
|
||||
metrics:
|
||||
prometheus:
|
||||
entryPoint: metrics
|
||||
buckets:
|
||||
- 0.1
|
||||
- 0.3
|
||||
- 1.2
|
||||
- 5.0
|
||||
addEntryPointsLabels: true
|
||||
addServicesLabels: true
|
||||
|
||||
providers:
|
||||
docker:
|
||||
endpoint: "unix:///var/run/docker.sock"
|
||||
exposedByDefault: false
|
||||
http:
|
||||
endpoint: "http://http_provider/dynamic_conf.yaml"
|
||||
|
||||
certificatesResolvers:
|
||||
sslResolver:
|
||||
acme:
|
||||
email: {{ acme.email }}
|
||||
tlschallenge: {}
|
||||
storage: acme.json
|
||||
keyType: RSA4096
|
||||
{% if acme.debug %}
|
||||
caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||
{% endif %}
|
||||
httpChallenge:
|
||||
entryPoint: http
|
Loading…
Add table
Add a link
Reference in a new issue