Closed dpetryuk closed 1 year ago
For anyone else that may run into this issue: I managed to solve this by following the instructions here
i had to add
handle_path /web* { root * /var/www/html/web file_server }
along with reverse_proxy localhost:8080
to my Caddyfile to setup a reverse proxy for headscale since it's running on that port in my VPS by default.
Hi. I'm currently trying to get headscale-ui setup with headscale on my VPS (on Debian 11) using Caddy. I have headscale running on my VPS under the host static IP. I downloaded headscale-ui, unzipped, and placed the![image](https://github.com/gurucomputing/headscale-ui/assets/20137329/12a5d9ef-5d89-4305-8262-5170f0630acd)
web
folder under/var/www/html
for Caddy. However, when I try to reach the server via my VPS's host IP, I get these errors in the console.Here's my Caddyfile config:![image](https://github.com/gurucomputing/headscale-ui/assets/20137329/2daf7659-bd50-4002-b659-cff97dbc1ba3)
I also tried hosting the files under
/web
through the Caddyfile (added/web
to:80
), but the files wouldn't even load in. Any suggestions? Thanks in advance.