Add location block for API endpoint

Add missing location block for influxdb API endpoint
This commit is contained in:
Jakub W 2023-12-21 11:42:42 +01:00 committed by GitHub
parent c53bb112f6
commit 9098730e30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}