From c57808a38664b7548f798ec60126a94d40acd1d3 Mon Sep 17 00:00:00 2001 From: Jakub W Date: Thu, 4 Jan 2024 12:27:17 +0100 Subject: [PATCH] Disable additional auth for API endpoint --- influxdb.subdomain.conf.sample | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/influxdb.subdomain.conf.sample b/influxdb.subdomain.conf.sample index e772beb..ca86cb7 100644 --- a/influxdb.subdomain.conf.sample +++ b/influxdb.subdomain.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/05/31 +## Version 2024/01/05 # make sure that your influxdb container is named influxdb # make sure that your dns has a cname set for influxdb @@ -41,6 +41,17 @@ server { set $upstream_port 8086; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } + + location ~ (/influxdb)?/api { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app influxdb; + set $upstream_port 8086; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } }