Skip to content
Snippets Groups Projects
Quentin Bramas's avatar
Quentin Bramas authored
e00d8e69
  1. Deploy the server somewhere with the image registry.app.unistra.fr/bramas/docker-containers/frpc set the Token as an environment variable FRP_AUTH_TOKEN

  2. Then, on your local machine, add an alias to your .bashrc or .zshrc file:

    alias tun='docker run -e FRP_LOCAL_PORT="$1" -e FRP_SERVER_ADDR="THE SERVER ADDR" --network host -e FRP_AUTH_TOKEN="THE TOKEN" -e FRP_SERVER_PORT="THE SERVER PORT"  registry.app.unistra.fr/bramas/docker-containers/frpc'

    Replace THE SERVER ADDR, THE SERVER PORT and THE TOKEN with the correct values.

  3. Then, you can use the alias to expose a local port to the server:

    tun 8000