Add SOCKS support

This commit is contained in:
Nexus 2024-02-24 15:20:22 +00:00
parent 94e12af103
commit ce13580bd4
Signed by: nex
GPG key ID: 0FA334385D0B689F
2 changed files with 3 additions and 2 deletions

View file

@ -38,4 +38,5 @@ volumes:
| `PREVIEW_HOMESERVER` | The homeserver to use for the previews. | `https://matrix.nexy7574.co.uk` | The host name of the request URL. |
| `PREVIEW_HOST` | The host IP/Name to listen to. | `192.168.0.2` | `0.0.0.0` |
| `PREVIEW_PORT` | The port to listen to. | `8080` | `2226` |
| `FORWARDED_ALLOW_IPS` | The list of reverse proxy IPs to trust. See [Uvicorn docs](https://www.uvicorn.org/settings/#http) | `*` | `127.0.0.1` |
| `PREVIEW_PROXY` | A HTTP/HTTPS/SOCKS4/SOCKS5 proxy to use for all network requests.
| `FORWARDED_ALLOW_IPS` | The list of reverse proxy IPs to trust. See [Uvicorn docs](https://www.uvicorn.org/settings/#http) | * | `127.0.0.1` |

View file

@ -1,6 +1,6 @@
rich~=13.7
uvicorn~=0.27
fastapi~=0.109
httpx~=0.26
httpx[socks]~=0.26
beautifulsoup4~=4.12
appdirs~=1.4