Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions templates/Caddyfile-http.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
}

:8008 {
# Tailscale captive portal detection
handle /generate_204 {
respond 204
}

redir /admin /admin/

handle /admin/* {
Expand Down
5 changes: 5 additions & 0 deletions templates/Caddyfile-https.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
}

${PUBLIC_SERVER_URL}:${PUBLIC_LISTEN_PORT} {
# Tailscale captive portal detection
handle /generate_204 {
respond 204
}

redir /admin /admin/

handle /admin/* {
Expand Down
9 changes: 9 additions & 0 deletions templates/headscale.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ grpc_listen_addr: 127.0.0.1:50443
# are doing.
grpc_allow_insecure: false

# CIDR(s) of reverse proxies (e.g. 127.0.0.1/32) whose
# True-Client-IP, X-Real-IP and X-Forwarded-For headers should
# be honoured. This template trusts loopback by default (for the bundled Caddy);
# set to [] to disable, or replace with your proxy CIDRs. Setting this
# without a proxy in front lets clients spoof their logged source IP.
trusted_proxies:
- 127.0.0.1/32
- ::1/128

# The Noise section includes specific configuration for the
# TS2021 Noise protocol
noise:
Expand Down