Skip to content

Commit

Permalink
Add port range docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Oct 23, 2020
1 parent c895c87 commit 24030de
Showing 1 changed file with 44 additions and 12 deletions.
56 changes: 44 additions & 12 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,24 @@ Setting up Screego with docker is pretty easy, you basically just have to start
The [screego/server](https://hub.docker.com/r/screego/server) docker images are multi-arch docker images.
This means the image will work for `amd64`, `i386`, `ppc64le` (power pc), `arm64`, `arm v7` (Raspberry PI).

?> When using [TURN](nat-traversal.md),
Screego will allocate random ports for relay connections. Thus, network host is needed.
When using [TURN](nat-traversal.md), Screego will allocate ports for relay connections.

```bash
$ docker run --net=host -e SCREEGO_EXTERNAL_IP=YOUREXTERNALIP screego/server:GITHUB_VERSION
```
The ports must be mapped that the host system forwards them to the screego container.

By default, Screego runs on port 5050.

?> Replace `YOUREXTERNALIP` with your external IP. One way to find your external ip is with ipify.
```bash
$ curl 'https://api.ipify.org'
```

### Network Host (recommended)

Replace `YOUREXTERNALIP` with your external IP. One way to find your external ip is with ipify.
```bash
$ curl 'https://api.ipify.org'
$ docker run --net=host -e SCREEGO_EXTERNAL_IP=YOUREXTERNALIP screego/server:GITHUB_VERSION
```

By default, Screego runs on port 5050.

### docker-compose.yml
#### docker-compose.yml

```yaml
version: "3.7"
Expand All @@ -40,9 +43,38 @@ services:
SCREEGO_EXTERNAL_IP: "YOUREXTERNALIP"
```
Replace `YOUREXTERNALIP` with your external IP. One way to find your external ip is with ipify.
### Port Range
`SCREEGO_TURN_STRICT_AUTH` should only be disabled if you enable TLS inside
Screego and not use a reverse proxy with `SCREEGO_TRUST_PROXY_HEADERS=true`.


```bash
$ curl 'https://api.ipify.org'
$ docker run \
-e SCREEGO_TURN_PORT_RANGE=50000:50100 \
-e SCREEGO_TURN_STRICT_AUTH=false \
-e SCREEGO_EXTERNAL_IP=YOUREXTERNALIP \
-p 5050:5050 \
-p 3478:3478 \
-p 50000-50100:50000-50100/udp \
screego/server:GITHUB_VERSION
```

#### docker-compose.yml

```yaml
version: "3.7"
services:
screego:
image: screego/server:GITHUB_VERSION
ports:
- 5050:5050
- 3478:3478
- 50000-50100:50000-50100/udp
environment:
SCREEGO_TURN_PORT_RANGE: "50000:50100"
SCREEGO_EXTERNAL_IP: "YOUREXTERNALIP"
SCREEGO_TURN_STRICT_AUTH: "false"
```

## Binary
Expand Down

0 comments on commit 24030de

Please sign in to comment.