No description
- Python 79.5%
- Shell 13.4%
- Dockerfile 7.1%
|
|
||
|---|---|---|
| .github/workflows | 💚 Add Docker Image CI support ( #17 ) | |
| scripts | Update docker ( #18 ) | |
| .gitignore | Update docker ( #18 ) | |
| .pre-commit-config.yaml | Format | |
| docker-compose.yml | Update docker ( #18 ) | |
| Dockerfile | Update docker ( #18 ) | |
| launch.sh | Update docker ( #18 ) | |
| LICENSE | Revert "Big updates" | |
| Pipfile | Update docker ( #18 ) | |
| proxy.py | Update docker ( #18 ) | |
| README.md | Update README.md | |
| requirements.txt | Fix the latest commit | |
ChatGPT-Proxy
Forward requests and inject CloudFlare cookies
> Unmaintained
Installation
One-click scripts
- With Docker:
curl https://raw.githubusercontent.com/acheong08/ChatGPT-Proxy/main/scripts/run-with-docker.sh | sh
Simple steps
- Clone the repository
- Check if Pipenv is installed. If not, run
pip install pipenv -U. - Then, run
pipenv update -din this directory, to automatically install the requirements of the proxy. - Run
pipenv run proxyin the base directory, and enjoy it! Uvicorn will provide a high-performance HTTP server for the API service.
Options
These options can be configured by setting environment variables using -e KEY="VALUE" in the docker run command.
| Env | Default | Example | Description |
|---|---|---|---|
GPT_PROXY |
- | socks5://127.0.0.1:1080 |
The proxy of your server. |
GPT_HOST |
0.0.0.0 |
127.0.0.1 |
The hostname of your server. |
GPT_PORT |
5000 |
8080 |
The port of your server. |