upgrade influxdb

This commit is contained in:
Jason Ertel
2023-02-08 13:23:45 -05:00
parent 291bdc0d82
commit ea0c3db8e1
175 changed files with 431 additions and 21108 deletions

View File

@@ -1,5 +1,9 @@
{%- from 'vars/globals.map.jinja' import GLOBALS %}
{%- set role = grains.id.split('_') | last %}
{%- set influxpass = salt['pillar.get']('secrets:influx_pass') %}
{%- set influxauth = 'so:' + influxpass | base64 %}
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
@@ -179,13 +183,14 @@ http {
autoindex_localtime on;
}
location /grafana/ {
location /influxdb/ {
auth_request /auth/sessions/whoami;
rewrite /grafana/(.*) /$1 break;
proxy_pass http://{{ GLOBALS.manager_ip }}:3000/;
rewrite /influxdb/(.*) /$1 break;
proxy_pass http://{{ GLOBALS.manager_ip }}:8086/;
proxy_read_timeout 90;
proxy_connect_timeout 90;
proxy_set_header Host $host;
proxy_set_header Authorization "Basic {{ influxauth }}";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Proxy "";