dashboard: set cookie_secure in grafana

When using grafana behind https `cookie_secure` should be set to `true`.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1966880

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 4daed1f137)
pull/6580/head v5.0.6
Guillaume Abrioux 2021-06-02 11:05:07 +02:00
parent ac0a5c1e68
commit 69a80aea9e
1 changed files with 5 additions and 0 deletions

View File

@ -27,3 +27,8 @@ http_addr = {{ grafana_server_addr }}
admin_user = {{ grafana_admin_user }}
admin_password = {{ grafana_admin_password }}
allow_embedding = {{ grafana_allow_embedding }}
{% if dashboard_protocol == 'https' %}
[session]
cookie_secure = true
{% endif %}