feat(dify): 新增dify配置
这个提交包含在:
@@ -35,6 +35,9 @@ spec:
|
||||
ssl-redirect: "true"
|
||||
# 自定义错误页面
|
||||
custom-http-errors: "403,404,502,503"
|
||||
# 全局限速配置
|
||||
limit-req-status-code: "429"
|
||||
limit-conn-status-code: "429"
|
||||
http-snippet: |
|
||||
# lua插件配置
|
||||
lua_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
|
||||
@@ -43,15 +46,12 @@ spec:
|
||||
proxy_cache_key $uri$is_args$args;
|
||||
proxy_cache_lock on;
|
||||
proxy_cache_use_stale updating;
|
||||
# 限速配置
|
||||
limit_req_zone $binary_remote_addr zone=global_limit:10m rate=10r/s;
|
||||
# 全局限速配置
|
||||
limit_req_zone $binary_remote_addr zone=global_limit:20m rate=20r/s;
|
||||
limit_req zone=global_limit burst=50 nodelay;
|
||||
server-snippet: |
|
||||
# dns配置 配置在http块下会出现重复配置 所以配置在server块下
|
||||
resolver 169.254.20.10 10.43.0.10 ipv6=off;
|
||||
location-snippet: |
|
||||
# 限速配置
|
||||
limit_req zone=global_limit burst=30 nodelay;
|
||||
limit_req_status 429;
|
||||
# 启用geoip2模块
|
||||
use-geoip: "false"
|
||||
use-geoip2: "true"
|
||||
|
||||
在新议题中引用
屏蔽一个用户