From 9098730e3025f0d3b4901b8185821d4a5951751e Mon Sep 17 00:00:00 2001 From: Jakub W Date: Thu, 21 Dec 2023 11:42:42 +0100 Subject: [PATCH] Add location block for API endpoint Add missing location block for influxdb 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..1c2f158 100644 --- a/influxdb.subdomain.conf.sample +++ b/influxdb.subdomain.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/05/31 +## Version 2023/12/21 # 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; + } }