NGINX 推送流模块

36 — 所有核心与模块指令——语法、默认值、上下文与真实配置示例。 · 模块指南 →

push_stream_allow_connections_to_events_channel 指令 'push_stream_allow_connections_to_events_channel' 控制是否允许直接连接到事件通道,适用于 NGINX… httpserverlocation push_stream_allowed_origins `push_stream_allowed_origins` 指令指定允许访问推送流功能的域名。 httpserverlocation push_stream_authorized_channels_only 'push_stream_authorized_channels_only' 指令在 NGINX Push Stream Module… httpserverlocation push_stream_channel_deleted_message_text push_stream_channel_deleted_message_text 指令定义了频道被删除时发送的消息。 http push_stream_channel_inactivity_time 为 push stream 通道设置不活动超时,允许对不活动的通道进行自动清理。 http push_stream_channel_info_on_publish 在 NGINX Push Stream 模块中发布消息时,启用通道信息的发布。 httpserverlocation push_stream_channels_path 指令 `push_stream_channels_path` 在 NGINX Push Stream Module 中设置用于订阅和发布的频道路径。 httpserverlocation push_stream_channels_statistics 为 NGINX Push Stream 模块启用频道统计。 location push_stream_events_channel_id `push_stream_events_channel_id` 指令为由 NGINX push stream 模块管理的事件通道设置 ID。 http push_stream_footer_template 定义用于推送流响应中页脚消息的模板。 httpserverlocation push_stream_header_template push_stream_header_template 指令指定用于推送流响应的自定义头模板。 httpserverlocation push_stream_header_template_file 指令 `push_stream_header_template_file` 指定一个用于在推送流响应中生成头部的模板文件。 httpserverlocation push_stream_last_event_id 指令 `push_stream_last_event_id` 在 NGINX Push Stream 模块中为长轮询连接设置最后的事件 ID。 httpserverlocation push_stream_last_received_message_tag `push_stream_last_received_message_tag` 指令配置 NGINX,以跟踪 Push Stream… httpserverlocation push_stream_last_received_message_time `push_stream_last_received_message_time` 指令在 NGINX Push Stream Module… httpserverlocation push_stream_longpolling_connection_ttl 设置 NGINX Push Stream 模块中长轮询连接的存活时间 (TTL)。 httpserverlocation push_stream_max_channel_id_length 设置 NGINX 中 Push Stream 通道 ID 的最大长度。 http push_stream_max_messages_stored_per_channel 指定每个推送流通道存储的最大消息数量。 http push_stream_max_number_of_channels 设置 NGINX Push Stream 模块中可以创建的频道的最大数量。 http push_stream_max_number_of_wildcard_channels 指令 'push_stream_max_number_of_wildcard_channels' 限制 NGINX Push Stream Module… http push_stream_max_subscribers_per_channel 限制 NGINX Push Stream 模块中每个通道允许的最大订阅者数量。 http push_stream_message_template `push_stream_message_template` 指令为 NGINX Push Stream 模块中的消息格式设置模板。 httpserverlocation push_stream_message_ttl `push_stream_message_ttl` 指令设置通道中消息在被删除之前的生存时长。 http push_stream_padding_by_user_agent 根据用户代理为推送流输出设置填充。 httpserverlocation push_stream_ping_message_interval 设置发送 ping 消息的间隔,以维持打开的 WebSocket 连接。 httpserverlocation push_stream_ping_message_text 为 NGINX push stream 模块中发送给客户端的 ping 消息设置自定义文本。 http push_stream_publisher `push_stream_publisher` 指令使一个 location 能够作为发布端点,将消息流式推送给订阅者。 location push_stream_shared_memory_size 配置为 NGINX 中的 Push Stream 模块分配的共享内存大小。 http push_stream_store_messages `push_stream_store_messages` 指令启用对推送流消息的存储,使订阅者能够接收在其离线时发送的消息。 httpserverlocation push_stream_subscriber `push_stream_subscriber` 指令启用一个 location,用于在 NGINX 中订阅推流通道。 location push_stream_subscriber_connection_ttl 为 NGINX Push Stream 模块中的订阅者连接设置生存时间 (TTL)。 httpserverlocation push_stream_timeout_with_body `push_stream_timeout_with_body` 指令控制响应中包含主体的推送流连接的超时时间。 http push_stream_user_agent `push_stream_user_agent` 指令为 NGINX push stream 模块设置自定义 User-Agent。 httpserverlocation push_stream_websocket_allow_publish 该指令用于指定是否允许在 WebSocket 通道上发布。 httpserverlocation push_stream_wildcard_channel_max_qtd 设置 NGINX Push Stream 模块中允许的通配符频道的最大数量。 httpserverlocation push_stream_wildcard_channel_prefix 指令 `push_stream_wildcard_channel_prefix` 为在 NGINX Push Stream 模块中使用通配符匹配的频道设置前缀。 http