Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx, Angular, ActiveMQ and Rx-stomp. #550

Open
ale0xps opened this issue Feb 11, 2024 · 0 comments
Open

Nginx, Angular, ActiveMQ and Rx-stomp. #550

ale0xps opened this issue Feb 11, 2024 · 0 comments

Comments

@ale0xps
Copy link

ale0xps commented Feb 11, 2024

Hello
I have a Angular app using rx-stomp to connect a stomp over ws.

ActiveMQ config:

<transportConnectors>
            <transportConnector name="openwire" uri="tcp://[0.0.0.0:10011?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600](http://0.0.0.0:10011/?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600)"/>
            <transportConnector name="amqp" uri="amqp://[0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600](http://0.0.0.0:5672/?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600)"/>
            <transportConnector name="stomp" uri="stomp://[0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600](http://0.0.0.0:61613/?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600)"/>
            <transportConnector name="mqtt" uri="mqtt://[0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600](http://0.0.0.0:1883/?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600)"/>
            <transportConnector name="ws" uri="ws://[0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600](http://0.0.0.0:61614/?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600)"/>
</transportConnectors>

with brokerURL: 'ws://MyActiveMQip:61614/stomp', in RxStompConfig it works great in local but I have to deploy my Angular App in a kubernetes pod with nginx like reverse proxy and I couldn't configure it successfully

I tried this nginx configuration:

inside the server:

location /stomp/ {
           proxy_pass http://MyActiveMQip:61614/;
           proxy_http_version 1.1;
           proxy_set_header Upgrade $http_upgrade;
           proxy_set_header Connection "upgrade";
    }

What nginx configuration do I need? what do I need in brokerURL? Please help me and explian what do I have to do to connect my Angular app with rx-stomp to activeMQ through nginx

Thanks
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant