Support nginx-terminated Telebit relay

This commit is contained in:
Elias Renman
2026-06-25 16:22:14 +02:00
parent b12d1c1f47
commit d9bfe141a3
2 changed files with 86 additions and 0 deletions

View File

@@ -6,6 +6,8 @@ RUN apk add --no-cache git
WORKDIR /src
RUN git clone --depth 1 --branch "${TELEBIT_REF}" https://github.com/therootcompany/telebit.git .
COPY patches/behind-nginx.patch /tmp/behind-nginx.patch
RUN git apply --recount /tmp/behind-nginx.patch
RUN go generate -mod=vendor ./...
RUN CGO_ENABLED=0 go build -mod=vendor -ldflags="-s -w" -o /out/telebit-relay ./cmd/telebit