claude-max-api-proxy hat host hardcoded auf 127.0.0.1 in standalone.js — die startServer() Funktion unterstützt zwar einen host Parameter, aber der CLI-Einstiegspunkt übergibt ihn nie.
This commit is contained in:
+5
-1
@@ -4,7 +4,11 @@ services:
|
||||
proxy:
|
||||
image: node:22-alpine
|
||||
container_name: aria-proxy
|
||||
command: sh -c "npm install -g @anthropic-ai/claude-code claude-max-api-proxy && claude-max-api"
|
||||
command: >-
|
||||
sh -c "npm install -g @anthropic-ai/claude-code claude-max-api-proxy &&
|
||||
STANDALONE=$(find /usr/local/lib -path '*/claude-max-api-proxy/dist/server/standalone.js' | head -1) &&
|
||||
sed -i 's/startServer({ port })/startServer({ port, host: process.env.HOST || \"127.0.0.1\" })/' $$STANDALONE &&
|
||||
claude-max-api"
|
||||
volumes:
|
||||
- ~/.config/claude:/root/.config/claude:ro # Claude CLI Auth
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user