1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
h1(#main_configuration). Main Configuration
h2(#push_stream_shared_memory_size). push_stream_shared_memory_size <a name="push_stream_shared_memory_size" href="#"> </a>
*syntax:* _push_stream_shared_memory_size size [name]_
*default:* _none_
*context:* _http_
The size of the memory chunk this module will use to store published messages, channels and other shared structures.
When this memory is full any new request for publish a message or subscribe a channel will receive an 500 Internal Server Error response.
If you have more than one http block on same Nginx instance and do not want they share the same memory, you can set different names to each one with the optional argument _name_.
h2(#push_stream_channel_deleted_message_text). push_stream_channel_deleted_message_text <a name="push_stream_channel_deleted_message_text" href="#"> </a>
*syntax:* _push_stream_channel_deleted_message_text string_
*default:* _Channel deleted_
*context:* _http_
*release version:* _0.2.5_
The string used on channel deleted message sent to subscribers when the channel is deleted by a publisher.
h2(#push_stream_ping_message_text). push_stream_ping_message_text <a name="push_stream_ping_message_text" href="#"> </a>
*syntax:* _push_stream_ping_message_text string_
*default:* _none_
*context:* _http_
*release version:* _0.2.5_
The string used on ping message sent to subscribers.
h2(#push_stream_channel_inactivity_time). push_stream_channel_inactivity_time <a name="push_stream_channel_inactivity_time" href="#"> </a>
*syntax:* _push_stream_channel_inactivity_time time_
*default:* _30s_
*context:* _http_
*release version:* _0.3.5_
The length of time after what a channel will be considered inactive, counted after the last message was published on it or the last subscriber entered on it.
After this time the channel will no longer be available and will be moved to the trash queue.
When the "push_stream_authorized_channels_only":push_stream_authorized_channels_only is set to on, the inactivity time is only used to know when the channel should be moved to trash.
h2(#push_stream_message_ttl). push_stream_message_ttl <a name="push_stream_message_ttl" href="#"> </a>
*syntax:* _push_stream_message_ttl time_
*default:* _30m_
*context:* _http_
The length of time a message may be queued before it is considered expired.
h2(#push_stream_max_subscribers_per_channel). push_stream_max_subscribers_per_channel <a name="push_stream_max_subscribers_per_channel" href="#"> </a>
*syntax:* _push_stream_max_subscribers_per_channel number_
*default:* _none_
*context:* _http_
*release version:* _0.3.1_
The maximum number of subscribers accepted per channel. If you do not want to limit number of subscribers access to channels, just not set this directive.
h2(#push_stream_max_messages_stored_per_channel). push_stream_max_messages_stored_per_channel <a name="push_stream_max_messages_stored_per_channel" href="#"> </a>
*syntax:* _push_stream_max_messages_stored_per_channel number_
*default:* _none_
*context:* _http_
The maximum number of messages to store per channel. A channel's message buffer will retain at most this many most recent messages. If you do not want messages to be discarded by length, just not set this directive.
h2(#push_stream_max_channel_id_length). push_stream_max_channel_id_length <a name="push_stream_max_channel_id_length" href="#"> </a>
*syntax:* _push_stream_max_channel_id_length number_
*default:* _none_
*context:* _http_
Maximum permissible channel id length (number of characters). Longer ids will receive an 400 Bad Request response. If you do not want to limit channel id length, just not set this directive.
h2(#push_stream_max_number_of_channels). push_stream_max_number_of_channels <a name="push_stream_max_number_of_channels" href="#"> </a>
*syntax:* _push_stream_max_number_of_channels number_
*default:* _none_
*context:* _http_
The maximum number of concurrent channels on the server. If you do not want to limit the number of channels, just not set this directive.
h2(#push_stream_max_number_of_wildcard_channels). push_stream_max_number_of_wildcard_channels <a name="push_stream_max_number_of_wildcard_channels" href="#"> </a>
*syntax:* _push_stream_max_number_of_wildcard_channels number_
*default:* _none_
*context:* _http_
The maximum number of concurrent wildcard channels on the server. If you do not want to limit the number of wildcard channels, just not set this directive.
h2(#push_stream_wildcard_channel_prefix). push_stream_wildcard_channel_prefix <a name="push_stream_wildcard_channel_prefix" href="#"> </a>
*syntax:* _push_stream_wildcard_channel_prefix string_
*default:* _none_
*context:* _http_
The string prefix used to identify a wildcard channel, example: when you set this directive as "bd_", "bd_ch1" will be a wildcard channel.
A wildcard channel is technically equals to a normal one. It is intended to be used when the "push_stream_authorized_channels_only":push_stream_authorized_channels_only is set to on.
h2(#push_stream_events_channel_id). push_stream_events_channel_id <a name="push_stream_events_channel_id" href="#"> </a>
*syntax:* _push_stream_events_channel_id string_
*default:* _none_
*context:* _http_
*release version:* _0.6.0_
The string identify an events channel where some control messages will be published.
Examples:
{"type": "channel_created", "channel": "CHANNEL_ID"}
{"type": "channel_destroyed", "channel": "CHANNEL_ID"}
{"type": "client_subscribed", "channel": "CHANNEL_ID"}
{"type": "client_unsubscribed", "channel": "CHANNEL_ID"}
By default this channel is not available to subscription. To allow subscriptions to it is necessary set "push_stream_allow_connections_to_events_channel":push_stream_allow_connections_to_events_channel to on.
[push_stream_authorized_channels_only]subscribers.textile#push_stream_authorized_channels_only
[push_stream_allow_connections_to_events_channel]subscribers.textile#push_stream_allow_connections_to_events_channel
|