Revert "fix(api): market/combined_streams: Get Proxy form Environment (#879)" (#985)

This reverts commit 183e9273b8.
This commit is contained in:
Lawrence Liu
2025-11-13 23:17:26 +08:00
committed by tangmengqiu
parent e0af0d96e0
commit 34cb7b1bbd
3 changed files with 0 additions and 38 deletions

View File

@@ -1285,24 +1285,6 @@ sudo apt-get install libta-lib0-dev
- If API fails, system uses default mainstream coins (BTC, ETH, etc.)
- ~~Check API URL and auth parameter in config.json~~ *Check configuration in web interface*
### 6. WebSocket can't connect when using an HTTP/HTTPS proxy
**Solution**:
- Export standard proxy environment variables *before* starting the backend:
```bash
export HTTPS_PROXY=http://<proxy-host>:<port>
export HTTP_PROXY=http://<proxy-host>:<port>
# If your proxy requires credentials
export HTTPS_PROXY=http://user:pass@<proxy-host>:<port>
export HTTP_PROXY=http://user:pass@<proxy-host>:<port>
# Start NOFX normally
./start.sh
```
- **Docker Compose**: put the variables in `.env` or the service's `environment` block.
- NOFX relies on Go's `http.ProxyFromEnvironment`, so every outbound request—including the Binance combined streams WebSocket—follows these proxy settings automatically when the variables are present.
---
## 📈 Performance Optimization Tips