{
"token_hmac_secret_key": "",
"admin_password": "",
"admin_secret": "",
"api_key": "",
"allowed_origins": [
"your_hosting",
],
"namespaces": [
{
"name": "public"
}
]
}
upstream centrifugo {
# uncomment ip_hash if using SockJS transport with many upstream servers.
#ip_hash;
server 127.0.0.1:8000;
}
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
# ... your web site Nginx config
location /connection/websocket {
proxy_pass http://centrifugo;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}