grafana: enable HTTP/2 in nginx

This commit is contained in:
Ryan Cavicchioni 2022-08-30 07:09:23 -05:00
parent 1b42645bd3
commit 59c5347ffb
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -32,9 +32,9 @@ server {
{% if grafana_ssl_enabled is defined and {% if grafana_ssl_enabled is defined and
grafana_ssl_enabled %} grafana_ssl_enabled %}
server { server {
listen 443 ssl; listen 443 ssl http2;
{% if ansible_all_ipv6_addresses | length %} {% if ansible_all_ipv6_addresses | length %}
listen [::]:443 ssl; listen [::]:443 ssl http2;
{% endif %} {% endif %}
server_name {{ grafana_domain }}; server_name {{ grafana_domain }};
@ -51,6 +51,8 @@ server {
ssl_dhparam {{ grafana_ssl_dhparam }}; ssl_dhparam {{ grafana_ssl_dhparam }};
{% endif %} {% endif %}
proxy_set_header Host $http_host;
location /login { location /login {
limit_req zone=req_grafana_login burst=10; limit_req zone=req_grafana_login burst=10;
proxy_pass http://grafana_backend; proxy_pass http://grafana_backend;