Last active
August 29, 2015 14:01
-
-
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 contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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