Skip to content

Commit 24bca5e

Browse files
authored
Merge pull request #642 from unkn0wnAPI/influxdb-fix
Disable external authorization for Influxdb API endpoint
2 parents 5738540 + 8627400 commit 24bca5e

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

influxdb.subdomain.conf.sample

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/05/31
1+
## Version 2024/01/08
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,16 @@ server {
4141
set $upstream_port 8086;
4242
set $upstream_proto http;
4343
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
44+
4445
}
45-
}
4646

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+
55+
}
56+
}

0 commit comments

Comments
 (0)