chore: add traefik deployment and config generation
This commit is contained in:
parent
aca6e8dac2
commit
5c5a0e9d51
6 changed files with 155 additions and 1 deletions
42
roles/reverseproxy/templates/traefik.yml.j2
Normal file
42
roles/reverseproxy/templates/traefik.yml.j2
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{% if enable_dashboard %}
|
||||
api:
|
||||
dashboard: true
|
||||
insecure: true
|
||||
{% endif %}
|
||||
|
||||
entryPoints:
|
||||
web:
|
||||
address: ":80"
|
||||
{% if use_ssl %}
|
||||
http:
|
||||
redirections:
|
||||
entryPoint:
|
||||
to: websecure
|
||||
scheme: https
|
||||
{% endif %}
|
||||
websecure:
|
||||
address: ":443"
|
||||
|
||||
providers:
|
||||
{% if use_static_services | default(false) %}
|
||||
file:
|
||||
filename: /etc/traefik/services.yml
|
||||
watch: true
|
||||
{% endif %}
|
||||
{% if use_docker_provider | default(true) %}
|
||||
docker:
|
||||
endpoint: "unix:///var/run/docker.sock"
|
||||
exposedByDefault: false
|
||||
{% endif %}
|
||||
|
||||
certificatesResolvers:
|
||||
letsencrypt:
|
||||
acme:
|
||||
email: admin@digitalboard.ch
|
||||
storage: /letsencrypt/acme.json
|
||||
httpChallenge:
|
||||
entryPoint: web
|
||||
|
||||
global:
|
||||
checkNewVersion: false
|
||||
sendAnonymousUsage: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue