XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Improve documentation clarity for OLLAMA_HOST and Caddy rate limiting

Co-authored-by: hlohaus <983577+hlohaus@users.noreply.github.com>

0b5d6e82
copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
提交于

代码差异

2 个文件 +7 -8
Modified Caddyfile.example +5 -8
@@ -42,14 +42,11 @@ your-domain.com {
42 42 }
43 43
44 44 # Optional: Rate limiting
45 # Uncomment to enable
46 # rate_limit {
47 # zone dynamic {
48 # key {remote_host}
49 # events 100
50 # window 1m
51 # }
52 # }
45 # Note: Rate limiting in Caddy requires a plugin or external middleware
46 # For built-in rate limiting, consider using:
47 # 1. Caddy rate-limit plugin: https://github.com/mholt/caddy-ratelimit
48 # 2. External rate limiting service
49 # 3. Nginx as described in docs/reverse-proxy.md
53 50 }
54 51
55 52 # For local development without a domain (comment out the above and use this instead)
Modified docker-compose-proxy.yml +2 -0
@@ -20,6 +20,8 @@ services:
20 20 networks:
21 21 - gpt4free-network
22 22 environment:
23 # Optional: Only needed if using Ollama for local model inference
24 # Remove this line if not using Ollama
23 25 - OLLAMA_HOST=host.docker.internal
24 26
25 27 # Caddy reverse proxy with automatic HTTPS