feat: add anthropic API proxy route to Caddyfile and revert to npm install in Dockerfile
This commit is contained in:
@@ -23,6 +23,13 @@
|
|||||||
}
|
}
|
||||||
header @html Cache-Control "public, max-age=0, must-revalidate"
|
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
|
try_files {path} /index.html
|
||||||
|
|
||||||
handle_errors {
|
handle_errors {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ FROM node:24-alpine AS builder
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm install
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user