I have a similar problem with the webui behind a nginx reverse proxy.
With SCRIPT_NAME set, I get a redirect loop. The UI should be available under https://headscale.example.com/admin. Nginx takes care for http -> https redirects but https://headscale.example.com/admin redirects me back to http, causing a loop.
Removing SCRIPT_NAME results in a 404
With
SCRIPT_NAME
set, I get a redirect loop. The UI should be available underhttps://headscale.example.com/admin
. Nginx takes care for http -> https redirects buthttps://headscale.example.com/admin
redirects me back tohttp
, causing a loop. RemovingSCRIPT_NAME
results in a 404Originally posted by @vbrandl in https://github.com/iFargle/headscale-webui/issues/63#issuecomment-1492154298