webhook.py: check_auth() requires Bearer token (WEBHOOK_AUTH_TOKEN), checked before HMAC signature. Returns 401 on missing auth. Dockerfile: nginx proxies /hook -> host:41798, forwarding Authorization + X-Gitea-Signature headers. Host IP via HOST_IP env + host-gateway. docker-compose.yml: extra_hosts host-gateway + HOST_IP env. deploy-webhook.sh: generates .webhook.auth token, 'auth' subcommand. Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
351 B
YAML
13 lines
351 B
YAML
services:
|
|
benchmark:
|
|
build: .
|
|
image: llm-benchmark:latest
|
|
container_name: llm-benchmark
|
|
restart: unless-stopped
|
|
ports:
|
|
- "0.0.0.0:31415:80" # all interfaces:31415 -> container :80 (Netbird proxies in front)
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
environment:
|
|
- HOST_IP=host.docker.internal
|