Enable websockets support in nginx.

This commit is contained in:
Andrea Dell'Amico 2023-11-15 11:52:29 +01:00
parent dca8f0fc91
commit f2042006cd
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 6 additions and 2 deletions

View File

@ -279,18 +279,22 @@ grafana_oauth_allow_assign_grafana_admin: false
# https://grafana.com/docs/grafana/next/setup-grafana/configure-security/configure-authentication/generic-oauth/#jmespath-examples
grafana_oauth_role_attribute_path: ""
grafana_tls_enabled: false
grafana_tls_only: "{{ grafana_tls_enabled }}"
grafana_nginx_virthosts:
- virthost_name: "{{ ansible_fqdn }}"
listen: "80"
server_name: "{{ ansible_fqdn }}"
server_aliases: ""
index: index.html
ssl_enabled: false
ssl_only: false
ssl_enabled: "{{ grafana_tls_enabled }}"
ssl_only: "{{ grafana_tls_only }}"
ssl_letsencrypt_certs: "{{ nginx_letsencrypt_managed }}"
root: "{{ nginx_webroot }}"
server_tokens: "off"
websockets: true
proxy_standard_setup: true
proxies:
- location: /
websockets: true
target: http://localhost:{{ grafana_http_port }};