Add whitelist on traefik dashboard
This commit is contained in:
parent
69e8e45188
commit
2ad34e1f1b
@ -3,7 +3,7 @@
|
||||
grafana_auth_anonymous_enabled: true
|
||||
grafana_auth_anonymous_org_role: Editor # Viewer
|
||||
grafana_auth_anonymous_org_name: 'Main Org.'
|
||||
grafana_auth_disable_login_form: true
|
||||
grafana_auth_disable_login_form: false
|
||||
grafana_editors_can_admin: false
|
||||
grafana_users_viewers_can_edit: false
|
||||
grafana_log_level: error
|
||||
|
@ -36,6 +36,7 @@ services:
|
||||
traefik.http.routers.dashboard.rule: Host(`{{ traefik_domain }}`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
|
||||
{% if traefik_ipwhitelist is defined %}
|
||||
traefik.http.middlewares.clientips.ipwhitelist.sourcerange: {{ traefik_ipwhitelist }}
|
||||
traefik.http.routers.traefik.middlewares: "clientips@docker"
|
||||
{% endif %}
|
||||
traefik.http.middlewares.auth.basicauth.users: "ludal:$$apr1$$N3vklVTY$$zrq2kwkaVdynGlakyb4J7."
|
||||
traefik.http.middlewares.auth.basicauth.realm: {{ traefik_domain }} - restricted access
|
||||
|
Loading…
x
Reference in New Issue
Block a user