Notably, you’ll need to wrap that in a handle
directive though, because you’re also using a reverse_proxy
.
@matt actually just wrote a post that explains why that would be needed!
So I think your Caddyfile would look like this:
https://lights.kebler.net {
import r53
root * /opt/lights/web
handle /socket.io/* {
reverse_proxy http://lights.net:3030
}
handle {
try_files {path} {path}/ /index.html
file_server
}
}