GithubHelp home page GithubHelp logo

fredliang44 / derper-docker Goto Github PK

View Code? Open in Web Editor NEW
227.0 5.0 53.0 27 KB

tailscale‘s selfhosted derp-server docker image

Home Page: https://tailscale.com/kb/1118/custom-derp-servers/

License: GNU General Public License v3.0

Dockerfile 100.00%
tailscale derp derper docker arm64 amd64

derper-docker's Introduction

Derper

docker workflow docker pulls platfrom

Setup

required: set env DERP_DOMAIN to your domain

docker run -e DERP_DOMAIN=derper.your-domain.com -p 80:80 -p 443:443 -p 3478:3478/udp fredliang/derper
env required description default value
DERP_DOMAIN true derper server hostname your-hostname.com
DERP_CERT_DIR false directory to store LetsEncrypt certs(if addr's port is :443) /app/certs
DERP_CERT_MODE false mode for getting a cert. possible options: manual, letsencrypt letsencrypt
DERP_ADDR false listening server address :443
DERP_STUN false also run a STUN server true
DERP_STUN_PORT false The UDP port on which to serve STUN. 3478
DERP_HTTP_PORT false The port on which to serve HTTP. Set to -1 to disable 80
DERP_VERIFY_CLIENTS false verify clients to this DERP server through a local tailscaled instance false

Usage

Fully DERP setup offical documentation: https://tailscale.com/kb/1118/custom-derp-servers/

Client verification

In order to use DERP_VERIFY_CLIENTS, the container needs access to Tailscale's Local API, which can usually be accessed through /var/run/tailscale/tailscaled.sock. If you're running Tailscale bare-metal on Linux, adding this to the docker run command should be enough: -v /var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sock

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.