feat: add anthropic API proxy route to Caddyfile and revert to npm install in Dockerfile

This commit is contained in:
RaymondVerhoef
2026-05-14 13:09:22 +02:00
parent e783c5f1e7
commit 59e746a8a8
2 changed files with 8 additions and 1 deletions

View File

@@ -23,6 +23,13 @@
}
header @html Cache-Control "public, max-age=0, must-revalidate"
handle /api/anthropic/* {
uri strip_prefix /api/anthropic
reverse_proxy https://api.anthropic.com {
header_up Host api.anthropic.com
}
}
try_files {path} /index.html
handle_errors {

View File

@@ -3,7 +3,7 @@ FROM node:24-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
RUN npm install
COPY . .