Chirpstack 4 NGINX Proxy No Events Or LoRAWAN Frames

Hi, If using a NGINX proxy I can not see events or LoRaWAN frames on the Chirpstack web-interface. Is the reason perhaps a wrong WebSocket configuration? The following configuration example worked perfectly with version 3:

https://www.chirpstack.io/application-server/install/nginx/

server {
    listen 443 ssl;
    server_name localhost;

    ssl_certificate /etc/chirpstack-application-server/certs/http.pem;
    ssl_certificate_key /etc/chirpstack-application-server/certs/http-key.pem;

    # WebSocket configuration
    location ~ ^/api/(gateways|devices)/(\w+)/(frames|events)$ {
        proxy_pass http://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 http://localhost:8080/;
    }
}

Does this configuration need to be changed to see the LoRaWAN live frames with Chirpstack 4? If yes, I would grateful for a working config example.

In v4, they don’t use Websocket at /api anymore.
Do this instead

location /api.InternalService {
        grpc_pass grpc://localhost:8080;
    }
2 Likes

This works, thanks so much datnus!

Thanks a lot @datnus, it works for me.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.