Support nginx-terminated Telebit relay
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user