Enable websockets support in nginx.
This commit is contained in:
parent
dca8f0fc91
commit
f2042006cd
|
@ -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
|
# https://grafana.com/docs/grafana/next/setup-grafana/configure-security/configure-authentication/generic-oauth/#jmespath-examples
|
||||||
grafana_oauth_role_attribute_path: ""
|
grafana_oauth_role_attribute_path: ""
|
||||||
|
|
||||||
|
grafana_tls_enabled: false
|
||||||
|
grafana_tls_only: "{{ grafana_tls_enabled }}"
|
||||||
grafana_nginx_virthosts:
|
grafana_nginx_virthosts:
|
||||||
- virthost_name: "{{ ansible_fqdn }}"
|
- virthost_name: "{{ ansible_fqdn }}"
|
||||||
listen: "80"
|
listen: "80"
|
||||||
server_name: "{{ ansible_fqdn }}"
|
server_name: "{{ ansible_fqdn }}"
|
||||||
server_aliases: ""
|
server_aliases: ""
|
||||||
index: index.html
|
index: index.html
|
||||||
ssl_enabled: false
|
ssl_enabled: "{{ grafana_tls_enabled }}"
|
||||||
ssl_only: false
|
ssl_only: "{{ grafana_tls_only }}"
|
||||||
ssl_letsencrypt_certs: "{{ nginx_letsencrypt_managed }}"
|
ssl_letsencrypt_certs: "{{ nginx_letsencrypt_managed }}"
|
||||||
root: "{{ nginx_webroot }}"
|
root: "{{ nginx_webroot }}"
|
||||||
server_tokens: "off"
|
server_tokens: "off"
|
||||||
|
websockets: true
|
||||||
proxy_standard_setup: true
|
proxy_standard_setup: true
|
||||||
proxies:
|
proxies:
|
||||||
- location: /
|
- location: /
|
||||||
|
websockets: true
|
||||||
target: http://localhost:{{ grafana_http_port }};
|
target: http://localhost:{{ grafana_http_port }};
|
||||||
|
|
Loading…
Reference in New Issue