feat: Add tunnel by default (#4399)

* feat: Add tunnel by default

If an access URL is not specified, we will always tunnel.

This is from community-member feedback who exclaimed that
it's confusing having the default for `coder server` display
a warning message, and I agree.

There is very little (maybe none) in running `coder server`
without tunnel and without an access URL, so this seems like
overall a much better UX.

* Update install.sh

Co-authored-by: Ben Potter <ben@coder.com>

* Update docs/install/packages.md

Co-authored-by: Ben Potter <ben@coder.com>

* Fix reset pass test

* Fix e2e test

Co-authored-by: Ben Potter <ben@coder.com>
This commit is contained in:
Kyle Carberry
2022-10-07 08:05:56 -05:00
committed by GitHub
co-authored by Ben Potter
parent 3049a56355
commit 3cc77d96eb
22 changed files with 60 additions and 88 deletions
+4 -10
View File
@@ -15,19 +15,13 @@ Coder with Docker has the following advantages:
1. [Install and launch Coder](../install)
Next, we export the `CODER_ADDRESS` and `CODER_ACCESS_URL` environment
variables. We can use localhost for the Access URL since the workspaces
all run on the same machine. `CODER_ADDRESS` is where coder server binds
while `CODER_ACCESS_URL` is where it's accessed. We use `:7080` to bind
to all interfaces.
The Coder server binds to port 3000 by default. Use `--address :<port>` to customize it!
```bash
$ export CODER_ADDRESS=:7080
$ export CODER_ACCESS_URL=http://localhost:7080
$ coder server --address $CODER_ADDRESS --access-url $CODER_ACCESS_URL
$ coder server
```
1. Run `coder login http://localhost:7080` in a new terminal and follow the
1. Run `coder login http://localhost:3000` in a new terminal and follow the
interactive instructions to create your user.
1. Pull the "Docker" example template using the interactive `coder templates init`:
@@ -38,7 +32,7 @@ Coder with Docker has the following advantages:
```
1. Push up the template with `coder templates create`
1. Open the dashboard in your browser (http://localhost:7080) to create your
1. Open the dashboard in your browser (http://localhost:3000) to create your
first workspace:
<img src="../images/quickstart/docker/login.png">