From ba02799b5c41005bad1fca9c4f75080b86e94a84 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 14 Nov 2021 17:40:10 +0000 Subject: [PATCH 1/3] Add healthchecks subdomain --- healthchecks.subdomain.conf.sample | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 healthchecks.subdomain.conf.sample diff --git a/healthchecks.subdomain.conf.sample b/healthchecks.subdomain.conf.sample new file mode 100644 index 0000000..227d229 --- /dev/null +++ b/healthchecks.subdomain.conf.sample @@ -0,0 +1,39 @@ +## Version 2021-11-14 +# make sure that your dns has a cname set for and that your container is not using a base url +# make sure your Healthchecks ALLOWED_HOSTS and SITE_ROOT align with the server_name used in this conf. + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name healthchecks.*; + + 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 healthchecks; + set $upstream_port 8000; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } From c614ef9eaa26b5cf6eed0427f0d6a2693281dc14 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 14 Nov 2021 17:46:46 +0000 Subject: [PATCH 2/3] Change date format --- healthchecks.subdomain.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthchecks.subdomain.conf.sample b/healthchecks.subdomain.conf.sample index 227d229..7c13ba2 100644 --- a/healthchecks.subdomain.conf.sample +++ b/healthchecks.subdomain.conf.sample @@ -1,4 +1,4 @@ -## Version 2021-11-14 +## Version 2021/11/14 # make sure that your dns has a cname set for and that your container is not using a base url # make sure your Healthchecks ALLOWED_HOSTS and SITE_ROOT align with the server_name used in this conf. From f4a3cb66dc8fa0487be478fe895823d8075261d0 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 14 Nov 2021 20:37:06 +0000 Subject: [PATCH 3/3] Fix mssing end } --- healthchecks.subdomain.conf.sample | 1 + 1 file changed, 1 insertion(+) diff --git a/healthchecks.subdomain.conf.sample b/healthchecks.subdomain.conf.sample index 7c13ba2..ae41ea9 100644 --- a/healthchecks.subdomain.conf.sample +++ b/healthchecks.subdomain.conf.sample @@ -37,3 +37,4 @@ server { set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } +}