Add whitelist on traefik dashboard

This commit is contained in:
tchivert 2023-03-03 15:37:12 +01:00
parent 69e8e45188
commit 2ad34e1f1b
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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