mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-10-12 04:54:45 +00:00
cmd/gateway runs the middleware as its own HTTP server behind Traefik. It reads a YAML config, converts it to JSON and decodes it with DisallowUnknownFields, so a misspelled key stops startup. It warns when metrics.allowedCIDRs is set, because behind a proxy the source address is the proxy's. The Makefile gains build-binary, docker-build and run-local targets. The Dockerfile builds from the committed vendor tree and stamps main.version from the VERSION build argument. go.mod lists go.yaml.in/yaml/v3 as a direct dependency. Claude-Session: https://claude.ai/code/session_01V5jYJNxpDFdJkyyExpADrv
28 lines
753 B
Plaintext
28 lines
753 B
Plaintext
# The Docker build context is the repository root, because the binary
|
|
# build needs both go.mod and the committed vendor/ tree. Everything below
|
|
# is irrelevant to `go build ./cmd/gateway` and would otherwise be
|
|
# transferred on every build — webui/node_modules alone is a large tree of
|
|
# files the Go build never reads.
|
|
#
|
|
# vendor/ is deliberately NOT listed: the image build runs with
|
|
# -mod=vendor and cannot resolve a single import without it.
|
|
.git
|
|
.github
|
|
.superpowers
|
|
docs
|
|
integration
|
|
webui
|
|
dist
|
|
bin
|
|
examples
|
|
testdata
|
|
|
|
# Tests and build tooling are not part of the runtime binary. tools/ has
|
|
# its own separate go modules (yaegi-check, pricing-sync) that must never
|
|
# become the gateway's dependencies.
|
|
tools
|
|
*_test.go
|
|
|
|
Dockerfile
|
|
.dockerignore
|