Merge pull request #642 from unkn0wnAPI/influxdb-fix

Disable external authorization for Influxdb API endpoint
This commit is contained in:
Roxedus 2024-05-11 17:02:12 +02:00 committed by GitHub
commit 24bca5e1c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
## Version 2023/05/31 ## Version 2024/01/08
# make sure that your influxdb container is named influxdb # make sure that your influxdb container is named influxdb
# make sure that your dns has a cname set for influxdb # make sure that your dns has a cname set for influxdb
@ -41,6 +41,16 @@ server {
set $upstream_port 8086; set $upstream_port 8086;
set $upstream_proto http; set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port; 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;
} }
} }