mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-14 08:16:56 +08:00
This reverts commit 183e9273b8.
This commit is contained in:
committed by
tangmengqiu
parent
3451d7bfac
commit
575aef2156
18
README.md
18
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user