feat(proxy): sing-box для обхода блокировки OpenRouter из РФ
All checks were successful
Deploy / test (push) Successful in 3m48s
Deploy / deploy (push) Successful in 17m25s

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:
jze9
2026-08-26 17:37:26 +05:00
parent c156fb2b78
commit e05e658d81
6 changed files with 62 additions and 0 deletions

View 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"
}
}