feat: 一个plus版的反代自定义配置实现 #22

This commit is contained in:
helloplhm-qwq
2024-01-13 14:59:30 +08:00
parent 5528f64406
commit 427cc7260a
2 changed files with 23 additions and 6 deletions

View File

@ -62,6 +62,17 @@ default = {
"privkey": "/path/to/your/private/key",
},
},
"reverse_proxy": {
"desc": "针对类似于nginx一类的反代的配置",
"allow_proxy": True,
"_allow_proxy-desc": "是否允许反代",
"proxy_whitelist_remote": [
"反代时允许的ip来源列表通常为127.0.0.1",
"127.0.0.1"
],
"real_ip_header": 'X-Real-IP',
"_real_ip_header-desc": "反代来源ip的来源头不懂请保持默认",
},
"debug_mode": False,
"_debug_mode-desc": "是否开启调试模式",
"log_length_limit": 500,