Commit 2607243f authored by Martin's avatar Martin Committed by Wandenberg

clarify basic configuration example and nginx versions compatibility to close...

clarify basic configuration example and nginx versions compatibility to close #145 and fix clone url to close #135

Co-Authored by: Roman Kuzmin <romanoza@gmail.com>
Signed-off-by: 's avatarWandenberg <wandenberg@gmail.com>
parent 0ec88e79
...@@ -27,28 +27,36 @@ This module is considered production ready. ...@@ -27,28 +27,36 @@ This module is considered production ready.
h1(#basic-configuration). Basic Configuration h1(#basic-configuration). Basic Configuration
<pre> <pre>
location /channels-stats { # add the push_stream_shared_memory_size to your http context
# activate channels statistics mode for this location http {
push_stream_channels_statistics; push_stream_shared_memory_size 32M;
# query string based channel id # define publisher and subscriber endpoints in your server context
push_stream_channels_path $arg_id; server {
} location /channels-stats {
# activate channels statistics mode for this location
location /pub { push_stream_channels_statistics;
# activate publisher (admin) mode for this location
push_stream_publisher admin; # query string based channel id
push_stream_channels_path $arg_id;
# query string based channel id }
push_stream_channels_path $arg_id;
} location /pub {
# activate publisher (admin) mode for this location
location ~ /sub/(.*) { push_stream_publisher admin;
# activate subscriber (streaming) mode for this location
push_stream_subscriber; # query string based channel id
push_stream_channels_path $arg_id;
# positional channel path }
push_stream_channels_path $1;
location ~ /sub/(.*) {
# activate subscriber (streaming) mode for this location
push_stream_subscriber;
# positional channel path
push_stream_channels_path $1;
}
}
} }
</pre> </pre>
...@@ -156,10 +164,10 @@ h1(#installation). Installation <a name="installation" href="#">&nbsp;</a> ...@@ -156,10 +164,10 @@ h1(#installation). Installation <a name="installation" href="#">&nbsp;</a>
<pre> <pre>
# clone the project # clone the project
git clone http://github.com/wandenberg/nginx-push-stream-module.git git clone https://github.com/wandenberg/nginx-push-stream-module.git
NGINX_PUSH_STREAM_MODULE_PATH=$PWD/nginx-push-stream-module NGINX_PUSH_STREAM_MODULE_PATH=$PWD/nginx-push-stream-module
# get desired nginx version (works with 1.5.x, 1.4.x, 1.3.x, 1.2.x series) # get desired nginx version (works with 1.2.0+)
wget http://nginx.org/download/nginx-1.2.0.tar.gz wget http://nginx.org/download/nginx-1.2.0.tar.gz
# unpack, configure and build # unpack, configure and build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment