Skip to content

Instantly share code, notes, and snippets.

@mgunneras
Created July 26, 2010 21:36
Show Gist options
  • Save mgunneras/491294 to your computer and use it in GitHub Desktop.
Save mgunneras/491294 to your computer and use it in GitHub Desktop.
#user nobody;
worker_processes 1;
worker_rlimit_nofile 500000;
events {
worker_connections 500000;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /breakfast/data/logs/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
push_max_reserved_memory 500M;
#gzip on;
server {
listen 80;
server_name _;
location /feed {
push_channel_group pushmodule_chat;
location /feed/publish {
set $push_channel_id mychat; #static channel id
push_publisher;
push_message_timeout 5m;
push_message_buffer_length 0;
}
location /feed/subscribe {
# push_authorized_channels_only on;
set $push_channel_id mychat; #static channel id
push_subscriber;
send_timeout 3600; #so that nginx won't drop connections willy-nilly
}
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
include /breakfast/data/conf/nginx/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment