Skip to content
Snippets Groups Projects
Commit e00d8e69 authored by Quentin Bramas's avatar Quentin Bramas
Browse files

port from env

parent 11057ce3
No related merge requests found
......@@ -5,9 +5,9 @@ set the Token as an environment variable `FRP_AUTH_TOKEN`
1. Then, on your local machine, add an alias to your `.bashrc` or `.zshrc` file:
```bash
alias tun='docker.exe run -e FRP_LOCAL_PORT="$1" -e FRP_SERVER_ADDR="THE SERVER ADDR" --network host -e FRP_AUTH_TOKEN="THE TOKEN" registry.app.unistra.fr/bramas/docker-containers/frpc'
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` and `THE TOKEN` with the correct values.
Replace `THE SERVER ADDR`, `THE SERVER PORT` and `THE TOKEN` with the correct values.
1. Then, you can use the alias to expose a local port to the server:
```bash
......
serverAddr = "{{ .Envs.FRP_SERVER_ADDR}}"
serverPort = 7000
serverPort = {{ .Envs.FRP_SERVER_PORT}}
auth.token= "{{ .Envs.FRP_AUTH_TOKEN }}"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment