xnix:nginx_doh
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版后一修订版两侧同时换到之后的修订记录 | ||
xnix:nginx_doh [2021/10/15 15:59] – [为 Nginx 增加 njs 功能模块] 增加 njs 下载地址 Hshh | xnix:nginx_doh [2021/12/30 04:47] – Hshh | ||
---|---|---|---|
行 4: | 行 4: | ||
- [[https:// | - [[https:// | ||
- | - [[https:// | + | - [[https:// |
- [[https:// | - [[https:// | ||
- [[https:// | - [[https:// | ||
行 72: | 行 72: | ||
ssl_dhparam / | ssl_dhparam / | ||
tcp_nodelay on; | tcp_nodelay on; | ||
- | js_include / | + | js_import / |
upstream dot { | upstream dot { | ||
zone dot 64k; | zone dot 64k; | ||
行 80: | 行 80: | ||
server { | server { | ||
listen 127.0.0.1: | listen 127.0.0.1: | ||
- | js_filter dns_filter_doh_request; | + | js_filter nginx_stream.dns_filter_doh_request; |
proxy_ssl on; | proxy_ssl on; | ||
proxy_pass dot; | proxy_pass dot; | ||
} | } | ||
} | } | ||
+ | </ | ||
+ | |||
+ | ==== nginx_stream.js hack ==== | ||
+ | 在本次修改前, | ||
+ | < | ||
+ | export default { glb_get_response, | ||
</ | </ | ||
行 96: | 行 102: | ||
=== 使用 doh === | === 使用 doh === | ||
参见 https:// | 参见 https:// | ||
+ | |||
+ | ==== 更新说明 ==== | ||
+ | * 20211228, 新版的 njs, 需要 js 源代码输出 export, 为此 js_filter 也需要声明命名空间. 另外配置文件中的 js_include 已被废弃, |
xnix/nginx_doh.txt · 最后更改: 2024/05/30 03:41 由 Hshh