From 136e3f040598e3c00b28640dc9f4abeec73379ad Mon Sep 17 00:00:00 2001 From: Ilya Semenov Date: Sat, 3 Jan 2026 15:53:46 +0700 Subject: [PATCH] Fix headscale Caddyfile to pass non-API URLs (#10493) --- install/headscale-install.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/install/headscale-install.sh b/install/headscale-install.sh index e3baad93c..47f66a21c 100644 --- a/install/headscale-install.sh +++ b/install/headscale-install.sh @@ -28,7 +28,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then redir /admin /admin/ -handle_path /admin* { +handle_path /admin/* { root * /opt/headscale-admin encode gzip zstd @@ -36,14 +36,11 @@ handle_path /admin* { X-Content-Type-Options nosniff } - try_files {path} {path}/ /opt/headscale-admin/index.html + try_files {path} /opt/headscale-admin/index.html file_server } -handle /api/* { - reverse_proxy localhost:8080 -} - +reverse_proxy localhost:8080 EOF caddy fmt --overwrite /etc/caddy/Caddyfile systemctl start caddy