Skip to content

Commit f3b94b8

Browse files
authored
Merge pull request #405 from linuxserver/healthchecks
2 parents 0b4c128 + f4a3cb6 commit f3b94b8

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

healthchecks.subdomain.conf.sample

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## Version 2021/11/14
2+
# make sure that your dns has a cname set for <container_name> and that your <container_name> container is not using a base url
3+
# make sure your Healthchecks ALLOWED_HOSTS and SITE_ROOT align with the server_name used in this conf.
4+
5+
server {
6+
listen 443 ssl;
7+
listen [::]:443 ssl;
8+
9+
server_name healthchecks.*;
10+
11+
include /config/nginx/ssl.conf;
12+
13+
client_max_body_size 0;
14+
15+
# enable for ldap auth, fill in ldap details in ldap.conf
16+
#include /config/nginx/ldap.conf;
17+
18+
# enable for Authelia
19+
#include /config/nginx/authelia-server.conf;
20+
21+
location / {
22+
# enable the next two lines for http auth
23+
#auth_basic "Restricted";
24+
#auth_basic_user_file /config/nginx/.htpasswd;
25+
26+
# enable the next two lines for ldap auth
27+
#auth_request /auth;
28+
#error_page 401 =200 /ldaplogin;
29+
30+
# enable for Authelia
31+
#include /config/nginx/authelia-location.conf;
32+
33+
include /config/nginx/proxy.conf;
34+
include /config/nginx/resolver.conf;
35+
set $upstream_app healthchecks;
36+
set $upstream_port 8000;
37+
set $upstream_proto http;
38+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
39+
}
40+
}

0 commit comments

Comments
 (0)