Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fancier, simpler example

  • Loading branch information...
commit 56aac7653200530277eb684481c59dccc9426193 1 parent 02a0e11
@slact authored
Showing with 7 additions and 10 deletions.
  1. +7 −10 README
View
17 README
@@ -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;
+
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.