feat(traefik): allow exposure of dashboard via domain
This commit is contained in:
parent
bce1daf5a6
commit
8e49b09fd6
5 changed files with 36 additions and 7 deletions
16
roles/traefik/templates/dashboard.yml.j2
Normal file
16
roles/traefik/templates/dashboard.yml.j2
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{% set dashboard_ssl = use_ssl_dashboard | default(use_ssl) %}
|
||||
http:
|
||||
routers:
|
||||
dashboard:
|
||||
rule: "Host(`{{ dashboard_domain }}`)"
|
||||
service: api@internal
|
||||
entryPoints:
|
||||
- {{ 'websecure' if dashboard_ssl else 'web' }}
|
||||
{% if dashboard_ssl %}
|
||||
tls:
|
||||
{% if cert_mode == 'acme' %}
|
||||
certResolver: {{ ssl_cert_resolver }}
|
||||
{% else %}
|
||||
{}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue