feat(proxy): sing-box для обхода блокировки OpenRouter из РФ
OpenRouter отдаёт 403 с российских IP (подтверждено вживую). Добавлен sing-box как отдельный сервис (VLESS+WS+TLS до ноды вне РФ) — только для исходящих запросов к OpenRouter из ollama_client.py, остальной трафик (Postgres/RabbitMQ/MinIO/Ollama) идёт напрямую. Реальный конфиг с UUID — только на проде (см. config.json.example), в git не попадает.
This commit is contained in:
39
infra/singbox/config.json.example
Normal file
39
infra/singbox/config.json.example
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"log": {
|
||||
"level": "warn"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "socks",
|
||||
"tag": "socks-in",
|
||||
"listen": "0.0.0.0",
|
||||
"listen_port": 1080
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"type": "vless",
|
||||
"tag": "proxy-out",
|
||||
"server": "CHANGE_ME.example.com",
|
||||
"server_port": 443,
|
||||
"uuid": "CHANGE_ME-uuid",
|
||||
"packet_encoding": "xudp",
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "CHANGE_ME.example.com",
|
||||
"alpn": ["http/1.1"],
|
||||
"utls": {
|
||||
"enabled": true,
|
||||
"fingerprint": "chrome"
|
||||
}
|
||||
},
|
||||
"transport": {
|
||||
"type": "ws",
|
||||
"path": "/api/stream"
|
||||
}
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"final": "proxy-out"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user