From 08be22c3e5e833fc627a930b2ed3a9678d7596e3 Mon Sep 17 00:00:00 2001 From: UntouchedWagons Date: Sun, 20 Jun 2021 16:21:13 -0400 Subject: [PATCH 1/2] Added influxdb.subdomain.conf.sample --- influxdb.subdomain.conf.sample | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 influxdb.subdomain.conf.sample diff --git a/influxdb.subdomain.conf.sample b/influxdb.subdomain.conf.sample new file mode 100644 index 0000000..e272f57 --- /dev/null +++ b/influxdb.subdomain.conf.sample @@ -0,0 +1,40 @@ +## Version 2021/06/20 +# make sure that your dns has a cname set for and that your container is not using a base url + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name influxdb.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + # enable for ldap auth, fill in ldap details in ldap.conf + #include /config/nginx/ldap.conf; + + # enable for Authelia + #include /config/nginx/authelia-server.conf; + + location / { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable the next two lines for ldap auth + #auth_request /auth; + #error_page 401 =200 /ldaplogin; + + # enable for Authelia + #include /config/nginx/authelia-location.conf; + + 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; + } +} + From 39b7ff3478e2e0a74ca01accf968b1303b878ba0 Mon Sep 17 00:00:00 2001 From: UntouchedWagons Date: Mon, 21 Jun 2021 14:29:29 -0400 Subject: [PATCH 2/2] Filled in the blanks --- influxdb.subdomain.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/influxdb.subdomain.conf.sample b/influxdb.subdomain.conf.sample index e272f57..ddb3926 100644 --- a/influxdb.subdomain.conf.sample +++ b/influxdb.subdomain.conf.sample @@ -1,5 +1,5 @@ ## Version 2021/06/20 -# make sure that your dns has a cname set for and that your container is not using a base url +# make sure that your dns has a cname set for influxdb and that your influxdb container is not using a base url server { listen 443 ssl;