Skip to content

Instantly share code, notes, and snippets.

@amvtek
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amvtek/8d3fc5bf06ebe1ac5da8 to your computer and use it in GitHub Desktop.
Save amvtek/8d3fc5bf06ebe1ac5da8 to your computer and use it in GitHub Desktop.
nginx pushstream config with non working push_stream_padding_by_user_agent
# This file is included in main nginx config file
# push-stream module configuration
push_stream_shared_memory_size 256M;
push_stream_message_ttl 60s;
push_stream_max_messages_stored_per_channel 32;
server {
listen 80;
server_name ts02.amvtek.com;
location = / {
default_type text/plain;
# I change response string so that I am sure config has been deployed
return 200 ":\r\n\r\n\r\n<CONFIG>19</CONFIG>\r\n";
}
location ~ /publish/(.*) {
push_stream_publisher admin;
#push_stream_store_messages on;
push_stream_channels_path $1;
}
location ~ /listen/(.*) {
push_stream_subscriber eventsource;
push_stream_channels_path $1;
}
location ~ /ie89/listen/(.*) {
push_stream_subscriber eventsource;
push_stream_channels_path $1;
push_stream_padding_by_user_agent "IE,2000,0";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment