The maximum number of concurrent broadcats channels on the server. If you do not want to limit the number of broadcast channels, just not set this directive.
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.
The string prefix used to identify when a channel is a normal or broadcast channel, example: when you set this directive as "bd_", "bd_ch1" will be a broadcast channel
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.
Whether or not a subscriber may create a channel by making a request to a push_stream_subscriber location. If set to on, a publisher must send a POST request before a subscriber can request messages on the channel. Otherwise, all subscriber requests to nonexistent channels will get a 403 Forbidden response.
This restriction is not applied to broadcast channels, but to subscribe to a broadcast channel is necessary to subscribe at least to one normal channel, and if this directive is set to on this channel has to be created before.
When set to on, subscribers can connect only to a channel with at least one stored message.
All subscriber requests to nonexistent channels or channels without stored messages will get a 403 Forbidden response.
This restriction is not applied to wildcard channels, but to connect to a wildcard channel is necessary to connect to at least one normal channel on the same request.
The text that will be sent to subscribers before connection is closed (channel deleted or subscriber timeout), except when long polling connections timed out.
The maximum number of broadcast channels that a subscriber may sign on the request.
This directive works in conjunction with push_stream_authorized_channels_only to preserve the server from a kind of attack where a subscriber sign one normal channel and many nonexistent broadcast channels.
The maximum number of wildcard channels that a subscriber may sign on the request.
This directive works in conjunction with "push_stream_authorized_channels_only":push_stream_authorized_channels_only to preserve the server from a kind of attack where a subscriber sign one normal channel and many nonexistent wildcard channels.
@@ -37,21 +37,21 @@ describe "Setup Parameters" do
nginx_test_configuration({:max_number_of_channels=>0}).shouldinclude("push_stream_max_number_of_channels cannot be zero")
end
it"should not accept '0' as max number of broadcast channels"do
nginx_test_configuration({:max_number_of_broadcast_channels=>0}).shouldinclude("push_stream_max_number_of_broadcast_channels cannot be zero")
it"should not accept '0' as max number of wildcard channels"do
nginx_test_configuration({:max_number_of_wildcard_channels=>0}).shouldinclude("push_stream_max_number_of_wildcard_channels cannot be zero")
end
it"should not accept '0' as max broadcast channels"do
nginx_test_configuration({:broadcast_channel_max_qtd=>0}).shouldinclude("push_stream_broadcast_channel_max_qtd cannot be zero")
it"should not accept '0' as max wildcard channels"do
nginx_test_configuration({:wildcard_channel_max_qtd=>0}).shouldinclude("push_stream_wildcard_channel_max_qtd cannot be zero")
end
it"should not set max broadcast channels without set boadcast channel prefix"do
nginx_test_configuration({:broadcast_channel_max_qtd=>1,:broadcast_channel_prefix=>""}).shouldinclude("cannot set broadcast channel max qtd if push_stream_broadcast_channel_prefix is not set or blank")
it"should not set max wildcard channels without set boadcast channel prefix"do
nginx_test_configuration({:wildcard_channel_max_qtd=>1,:wildcard_channel_prefix=>""}).shouldinclude("cannot set wildcard channel max qtd if push_stream_wildcard_channel_prefix is not set or blank")
end
it"should not accept '0' as max number of broadcast channels"do
nginx_test_configuration(config).shouldinclude("max number of broadcast channels cannot be smaller than value in push_stream_broadcast_channel_max_qtd")
it"should not accept '0' as max number of wildcard channels"do