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/6582/head
Guillaume Abrioux 2021-06-02 11:05:07 +02:00
parent f3b992328a
commit d00e4b3d9e
1 changed files with 6 additions and 0 deletions

View File

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