Skip to content

Commit 9098730

Browse files
authored
Add location block for API endpoint
Add missing location block for influxdb API endpoint
1 parent c53bb11 commit 9098730

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

influxdb.subdomain.conf.sample

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/05/31
1+
## Version 2023/12/21
22
# make sure that your influxdb container is named influxdb
33
# make sure that your dns has a cname set for influxdb
44

@@ -41,6 +41,17 @@ server {
4141
set $upstream_port 8086;
4242
set $upstream_proto http;
4343
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
44+
45+
}
46+
47+
location ~ (/influxdb)?/api {
48+
include /config/nginx/proxy.conf;
49+
include /config/nginx/resolver.conf;
50+
set $upstream_app influxdb;
51+
set $upstream_port 8086;
52+
set $upstream_proto http;
53+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
54+
4455
}
4556
}
4657

0 commit comments

Comments
 (0)