Help @Whitestrake
What I have is a spa (Quasar Framework)
But that SPA has two websocket clients (one a socketio one, one an extension of native socket client)
All this works fine in my dev server.
So in caddy I have this which serves the SPA fine but not too surprisingly? the connections to the two websocket servers fail (timeout). Iâve confirmed that the socketio socket is getting the right url so I can only assume itâs cause I need some âwebsocket passthroughâ from caddy?
# Lightinging System Frontend
https://lights2.XXXXX.net {
import wildcard_cert
root /mnt/data/lights-frontend
}
My SPA doesnât use a url proxy (like /api
) so scratching my head here cause using the proxy directive and websocket or transparent preset doesnât apply?? I did try one so but that just results in a 502 bad gateway (really no surprise)
https://lights2.kebler.net {
import wildcard_cert
root /mnt/data/lights-frontend
proxy / ws://192.168.0.231:3030 {
websocket
}
}