- vanilla nginx + Rust 动态模块(取代 OpenResty+Lua),共享内存为运行期真源 - 三域名分流 18098 ssl:mdm 管理台 / lm LLM 代理 / *.dm 企业转发,共用 *.mayishangshu.cn 通配符证书(证书不入库) - LLM 统一出口:同 Key 鉴权、上游 Key 替换、白名单、限流配额、SSE - 回归夹具 tests/(网关 55 + LLM 34 = 89 断言,夹具 cp 覆盖重置) - 文档:readme(16 章)+ CLAUDE.md + conf/tls/README(acme.sh 证书管理、hairpin 环回链路)
14 lines
582 B
Rust
14 lines
582 B
Rust
use core::mem::offset_of;
|
|
|
|
use crate::bindings::ngx_stream_conf_ctx_t;
|
|
|
|
/// The offset of the `main_conf` field in the `ngx_stream_conf_ctx_t` struct.
|
|
///
|
|
/// This is used to access the main configuration context for a STREAM module.
|
|
pub const NGX_STREAM_MAIN_CONF_OFFSET: usize = offset_of!(ngx_stream_conf_ctx_t, main_conf);
|
|
|
|
/// The offset of the `srv_conf` field in the `ngx_stream_conf_ctx_t` struct.
|
|
///
|
|
/// This is used to access the server configuration context for a STREAM module.
|
|
pub const NGX_STREAM_SRV_CONF_OFFSET: usize = offset_of!(ngx_stream_conf_ctx_t, srv_conf);
|