Fix a bug and add TLS configuration support
This commit is contained in:
parent
206f44c362
commit
7dff2ffc7b
7 changed files with 96 additions and 5 deletions
|
|
@ -20,9 +20,14 @@ spec:
|
|||
kind: Rule
|
||||
# (optional) Priority disambiguates rules of the same length, for route matching.
|
||||
priority: 12
|
||||
{% if basic_auth is defined %}
|
||||
{% if basic_auth is defined or ingress_whitelist is defined %}
|
||||
middlewares:
|
||||
{% if basic_auth is defined %}
|
||||
- name: basic-auth
|
||||
{% endif %}
|
||||
{% if ingress_whitelist is defined %}
|
||||
- name: traefik-ipwhitelist
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
services:
|
||||
- name: traefik-dashboard
|
||||
|
|
@ -38,3 +43,6 @@ spec:
|
|||
flushInterval: 100ms
|
||||
tls:
|
||||
secretName: wildcard-cluster
|
||||
options:
|
||||
name: default
|
||||
namespace: tools
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue