From adc8c36703817419818425bc32e4eb37eb4712af Mon Sep 17 00:00:00 2001 From: Gideon Shaked <46572680+The-Kid-Gid@users.noreply.github.com> Date: Thu, 13 Feb 2020 12:42:19 -0500 Subject: [PATCH 1/2] Create statping.subdomain.conf.sample --- statping.subdomain.conf.sample | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 statping.subdomain.conf.sample diff --git a/statping.subdomain.conf.sample b/statping.subdomain.conf.sample new file mode 100644 index 0000000..64b2e00 --- /dev/null +++ b/statping.subdomain.conf.sample @@ -0,0 +1,31 @@ +# make sure that your dns has a cname set for statping and that your statping container is not using a base url +# the default url is status.yourdomain.tld, but you can change it to whatever you want + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name status.*; + + 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; + + 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 /login; + + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_statping statup; + proxy_pass http://$upstream_statping:8080; + } +} From 23f9844ae66dd26bff9e354b05b098d86c5a6245 Mon Sep 17 00:00:00 2001 From: Gideon Shaked <46572680+The-Kid-Gid@users.noreply.github.com> Date: Sat, 15 Feb 2020 13:09:18 -0500 Subject: [PATCH 2/2] Update statping.subdomain.conf.sample --- statping.subdomain.conf.sample | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/statping.subdomain.conf.sample b/statping.subdomain.conf.sample index 64b2e00..f2a78b6 100644 --- a/statping.subdomain.conf.sample +++ b/statping.subdomain.conf.sample @@ -1,11 +1,12 @@ # make sure that your dns has a cname set for statping and that your statping container is not using a base url -# the default url is status.yourdomain.tld, but you can change it to whatever you want +# If you are using the SSL docker-compose.yml on the statping repo, then the container name will be set to statup. +# On other compose examples, it might be named statping. In that case, change $upstream_statping statup to $upstream_statping statping server { listen 443 ssl; listen [::]:443 ssl; - server_name status.*; + server_name statping.*; include /config/nginx/ssl.conf;