Skip to content

Commit 647ee20

Browse files
committed
Create headscale.subdomain.conf.sample
1 parent 82ce91d commit 647ee20

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

headscale.subdomain.conf.sample

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
## Version 2024/12/29
2+
# make sure that your headscale container is named headscale
3+
# make sure that your dns has a cname set for headscale
4+
5+
server {
6+
listen 443 ssl;
7+
listen [::]:443 ssl;
8+
9+
server_name headscale.*;
10+
11+
include /config/nginx/ssl.conf;
12+
13+
client_max_body_size 0;
14+
15+
# enable for ldap auth (requires ldap-location.conf in the location block)
16+
#include /config/nginx/ldap-server.conf;
17+
18+
# enable for Authelia (requires authelia-location.conf in the location block)
19+
#include /config/nginx/authelia-server.conf;
20+
21+
# enable for Authentik (requires authentik-location.conf in the location block)
22+
#include /config/nginx/authentik-server.conf;
23+
24+
location / {
25+
# enable for ldap auth (requires ldap-server.conf in the server block)
26+
#include /config/nginx/ldap-location.conf;
27+
28+
# enable for Authelia (requires authelia-server.conf in the server block)
29+
#include /config/nginx/authelia-location.conf;
30+
31+
# enable for Authentik (requires authentik-server.conf in the server block)
32+
#include /config/nginx/authentik-location.conf;
33+
34+
include /config/nginx/proxy.conf;
35+
include /config/nginx/resolver.conf;
36+
set $upstream_app headscale;
37+
set $upstream_port 8080;
38+
set $upstream_proto http;
39+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
40+
}
41+
42+
}

0 commit comments

Comments
 (0)