add github

This commit is contained in:
2025-06-13 22:48:00 +09:00
parent 33c166fa0c
commit 95cee69482
25 changed files with 2852 additions and 69 deletions

20
workers/wrangler.toml Normal file
View File

@ -0,0 +1,20 @@
name = "ollama-proxy"
main = "ollama-proxy.js"
compatibility_date = "2024-01-01"
# 環境変数
[vars]
REQUIRE_AUTH = false
# 本番環境
[env.production.vars]
OLLAMA_API_URL = "https://ollama.syui.ai/api/generate"
REQUIRE_AUTH = true
# KVネームスペースレート制限用
[[kv_namespaces]]
binding = "RATE_LIMITER"
id = "your-kv-namespace-id"
# シークレットwrangler secret putで設定
# OLLAMA_INTERNAL_TOKEN = "your-internal-token"