mirror of
https://github.com/fredliang44/derper-docker.git
synced 2025-09-13 08:04:34 +08:00
docs: update REAMDME.md
This commit is contained in:
parent
0f9c6714f3
commit
aa27dee0dc
2 changed files with 7 additions and 4 deletions
|
@ -7,8 +7,8 @@ RUN go install tailscale.com/cmd/derper@main
|
||||||
FROM ubuntu
|
FROM ubuntu
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV DEPR_HOSTNAME your-hostname.com
|
ENV DERP_DOMAIN your-hostname.com
|
||||||
COPY --from=builder /go/bin/derper .
|
COPY --from=builder /go/bin/derper .
|
||||||
COPY entrypoint.sh /app/entrypoint.sh
|
COPY entrypoint.sh /app/entrypoint.sh
|
||||||
|
|
||||||
CMD ["/app/derper", "--hostname", "${DEPR_HOSTNAME}"]
|
CMD ["/app/derper", "--hostname", "${DERP_DOMAIN}"]
|
||||||
|
|
|
@ -2,8 +2,11 @@
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
|
|
||||||
> required: set env `DEPR_HOSTNAME` to your domain
|
> required: set env `DERP_HOSTNAME` to your domain
|
||||||
|
|
||||||
```bash
|
```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/
|
||||||
|
|
Loading…
Add table
Reference in a new issue