From aa27dee0dcde0e0f1dac049f0972c63458793f78 Mon Sep 17 00:00:00 2001 From: Fred Liang Date: Sat, 25 Sep 2021 19:14:49 +0800 Subject: [PATCH] docs: update REAMDME.md --- Dockerfile | 4 ++-- README.md | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fc02a0e..8f1c790 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ RUN go install tailscale.com/cmd/derper@main FROM ubuntu WORKDIR /app -ENV DEPR_HOSTNAME your-hostname.com +ENV DERP_DOMAIN your-hostname.com COPY --from=builder /go/bin/derper . COPY entrypoint.sh /app/entrypoint.sh -CMD ["/app/derper", "--hostname", "${DEPR_HOSTNAME}"] \ No newline at end of file +CMD ["/app/derper", "--hostname", "${DERP_DOMAIN}"] diff --git a/README.md b/README.md index 59a60c6..bfe687c 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,11 @@ # Setup -> required: set env `DEPR_HOSTNAME` to your domain +> required: set env `DERP_HOSTNAME` to your domain ```bash -docker run -e DEPR_HOSTNAME=derper.your-domain.com fredliang/derper +docker run -e DERP_DOMAIN=derper.your-domain.com fredliang/derper ``` + +# Usage +Fully DERP setup offical documentation: https://tailscale.com/kb/1118/custom-derp-servers/