server { server_name pushmodule.slact.net; error_log logs/pushmodule/error.log; root /srv/www/pushmodule.slact.net; location /chat { #nginx has nested locations. neat, eh? push_channel_group pushmodule_chat; location /chat/pub { set $push_channel_id chatty; #static channel id push_publisher; push_message_timeout 5m; push_message_buffer_length 10; } location /chat/sub { set $push_channel_id chatty; #static channel id push_subscriber; send_timeout 3600; #so that nginx won't drop connections willy-nilly } } }