How to set up Grafana so that no password is necessary to view dashboards

后端 未结 5 951
日久生厌
日久生厌 2021-01-31 02:13

Despite these settings, Grafana still requires the use of a password to view Dashboards. Can someone please help me with the correct settings?

[auth.anonymous]
#         


        
5条回答
  •  萌比男神i
    2021-01-31 02:18

    Here is what i did for my Caddy proxy which uses client-cert auth already. Beware, this still exposes your datasource to the public! Be sure to replace your@email.com with your email and the Caddy proxy ip in grafana.ini.

    Caddyfile

    grafana.****.***, gf.****.*** {
        tls your@email.com {
            clients /mnt/user/appdata/caddy/conf/ca.crt
        }
    
        proxy / http://10.0.1.39:3000 {
            transparent
            websocket
            insecure_skip_verify
            header_upstream X-WEBAUTH-USER "admin"
        }
    }
    
    gf-pub.****.*** {
        tls your@email.com
    
        proxy / http://10.0.1.39:3000 {
            transparent
            websocket
            insecure_skip_verify
            header_upstream X-WEBAUTH-USER "public"
        }
    }
    

    grafana.ini

    [auth.proxy]
    enabled = true
    header_name = X-WEBAUTH-USER
    header_property = username
    enable_login_token = false
    whitelist = 10.0.1.3 <-- Your Caddy IP
    

提交回复
热议问题