Skip to content

Commit

Permalink
fancier, simpler example
Browse files Browse the repository at this point in the history
  • Loading branch information
slact committed Oct 17, 2009
1 parent 02a0e11 commit 56aac76
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions README
Expand Up @@ -97,25 +97,22 @@ http {
#for buffering and stuff
push_max_reserved_memory 12M; #default is 3M

#sender
server {
listen localhost:8089;
#sender
location / {
default_type text/plain;
set $push_channel_id $arg_id; #/?id=239aff3 or somesuch
push_sender;
push_message_timeout 2h; #buffered messages expire after 2 hours
push_message_buffer_length 10; #store 10 messages.
push_message_buffer_length 10; #store 10 messages.
}
}

#receiver
server {
listen 8088;
#receiver
location / {
default_type text/plain;
set $push_channel_id $arg_id; #/?id=239aff3 or somesuch
push_listener;
push_listener_concurrency broadcast;
set $push_channel_id $arg_id; #/?id=239aff3 or somesuch
default_type text/plain;

}
}
}
Expand Down

0 comments on commit 56aac76

Please sign in to comment.