-
Notifications
You must be signed in to change notification settings - Fork 443
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
stomp proxy #39
Comments
you can configure HAproxy to work with websockets http://blog.silverbucket.net/post/31927044856/3-ways-to-configure-haproxy-for-websockets |
Working config snippet for nginx:
[...]
|
I used nginx configuration which is presented above, but it didn't work for me in Google Chrome and worked in Firefox only through xhr (for websocket it returned 403). To solve this issue I've added @Configuration
@EnableScheduling
@ComponentScan("org.springframework.samples")
@EnableWebSocketMessageBroker
public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/portfolio").setAllowedOrigins("http://mydomain").withSockJS();
}
...
} See Lines 36 to 39 in 5c89859
Hope, this will help to somebody :) |
Hi @idelpivnitskiy , this definitely helped me, thank you :) |
Is there any application like httpd or nginx which could proxy stomp protocol?
The text was updated successfully, but these errors were encountered: