-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.proxy.yml
More file actions
32 lines (32 loc) · 1.02 KB
/
Copy pathdocker-compose.proxy.yml
File metadata and controls
32 lines (32 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
api-https-proxy:
image: node:22-alpine
container_name: api-https-proxy
restart: unless-stopped
network_mode: host
working_dir: /app
command: ["node", "proxy.mjs"]
environment:
HOST: "127.0.0.1"
PORT: "8787"
UPSTREAM_ORIGIN: "http://127.0.0.1:18080"
CAPTURE_ONLY: "1"
CHAT_COMPLETIONS_STREAM_MODE: "off"
CLIRELAY_API_KEY_LOOKUP: "0"
PANEL_EMBEDDED_PREFIX: "/_proxy-panel"
PANEL_EMBEDDED_AUTH_MODE: "sub2api-admin"
PANEL_SESSION_COOKIE_NAME: "__Secure-proxy_panel_session"
PANEL_SESSION_TTL_SECONDS: "21600"
MAX_CAPTURE_REQUEST_BYTES: "20971520"
MAX_CAPTURE_RESPONSE_BYTES: "20971520"
CAPTURE_RETENTION_DAYS: "30"
CAPTURE_RETENTION_MAX_FILES: "800"
CAPTURE_RETENTION_MAX_TOTAL_MB: "2048"
volumes:
- ./:/app
healthcheck:
test: ["CMD", "wget", "-q", "-T", "5", "-O", "/dev/null", "http://127.0.0.1:8787/__proxy_health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s