Skip to content

Commit 9ea312e

Browse files
jimmybrancacciojeanp413
authored andcommitted
Add Example of Setting Connection Token
For users using Docker Compose this provides an example of setting a connection token by using 'command'.
1 parent 5359821 commit 9ea312e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ docker run -it --init -p 3000:3000 -v "$(pwd):/home/workspace:cached" gitpod/ope
3232

3333
Since OpenVSCode Server v1.62, you must access the Web UI using a connection token generated by the server. If that's not what you're looking for, and instead want to generate these tokens by yourself, start the server with `--connectionToken YOUR_TOKEN` to force your secret to be used. If you want your development environment to be even more secure, create a plaintext file with the desired token as its contents and provide it to the server with `--connection-secret YOUR_SECRET_FILE`.
3434

35+
For those using docker-compose you can set a connection token by using `command`. For example:
36+
37+
```yaml
38+
command: --connectionToken yourTokenHere
39+
```
40+
3541
_Note_: Feel free to use the `nightly` tag to test the latest version, i.e. `gitpod/openvscode-server:nightly`.
3642

3743
#### Custom Environment

0 commit comments

Comments
 (0)