Nginx RabbitMQ STOMP Service - lyonwang/TechNotes GitHub Wiki
# STOMP Service
location ~* /ws {
access_by_lua_block {
local pass = processCORS()
ngx.log(ngx.NOTICE, "CORS pass: "..(pass and "true" or "false"))
}
proxy_http_version 1.1;
proxy_set_header Upgrade websocket;
proxy_set_header Connection upgrade;
proxy_pass http://stomp-service;
}