add Dockerfile, update README (license, temp config, docker instructions)

This commit is contained in:
Ash B 2026-04-17 19:59:31 +00:00
parent 0099455311
commit 229a561c4b
2 changed files with 34 additions and 1 deletions

View file

@ -25,6 +25,9 @@ Create a `config.yaml` file in the working directory:
port: 8080
upstream_url: "https://api.z.ai/api/anthropic"
# Optional: override temperature for all requests
# temperature: 0.7
# Retry configuration
max_retries: 3
retry_base_delay_ms: 1000
@ -70,6 +73,8 @@ Provides Go toolchain with gopls and other development tools.
## Running
### Binary
```bash
./proxx
```
@ -79,6 +84,18 @@ The server will start and log:
Starting proxx on :8080, upstream: https://api.z.ai/api/anthropic
```
### Docker
```bash
docker build -t proxx .
docker run -p 8080:8080 -v ./config.yaml:/etc/proxx/config.yaml proxx
```
The server will start and log:
```
Starting proxx on :8080, upstream: https://api.z.ai/api/anthropic
```
## API Endpoints
### GET /v1/models
@ -230,4 +247,4 @@ proxx/
## License
See LICENSE file for details.
MIT