Unable to display events / query on Axon Dashboard with NGINX as reverse proxy

Hello everyone,

When running the docker image of AxonServer 4.1 on my machine everything works perfect.

When running AxonServer on a remote machine and using NGINX as reverse proxy, I am able to access the Axon Dashboard, but the dashboard is unable to create a websocket and is unable to query Axon Server. (timeouts).

SSL on AxonServer grcp port 8124 is enabled and active with an wildcard cert -> *.test.mydomain.com

this is my nginx configuration:

`

server {
include includes/test_mydomain_wildcard_ssl;
server_name axon.test.mydomain.com;

location /axonserver-platform-websocket/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_pass “http://localhost:8024/axonserver-platform-websocket/”;
}

location / {
proxy_pass http://localhost:8024;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection ‘upgrade’;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}

`

Some help would really be appreciated :slight_smile:

Greetz,
Gideon

Hi Gideon,

Adding the following to the websocket-location section should do the trick:
proxy_set_header Host $http_host

Marc

Thanks Marc,

I can’t believe I missed that one.
I still got other errors no, but they are more specific so I should be able to figure that out myself.

Gideon