Then that is probably the issue. Make sure your proxy is able to forward the websocket connections (including all the headers). I had issues when using Apache as a reverse proxy, but NGINX works fine (don’t forget to set a long timeout for the proxied requests, as else you will see disconnects after ~1 minute).
Example (adapt this to your own needs):
server {
listen 443 ssl;
server_name localhost;
ssl_certificate /etc/lora-app-server/certs/http.pem;
ssl_certificate_key /etc/lora-app-server/certs/http-key.pem;
location ~ ^/api/(gateways|devices)/(\w+)/(frames|events)$ {
proxy_pass https://localhost:8080/api/$1/$2/$3;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;
}
location / {
proxy_pass https://localhost:8080/;
}
}