Skip to content

feat: Add tunnel by default#4399

Merged
kylecarbs merged 7 commits into
mainfrom
tunneldefault
Oct 7, 2022
Merged

feat: Add tunnel by default#4399
kylecarbs merged 7 commits into
mainfrom
tunneldefault

Conversation

@kylecarbs
Copy link
Copy Markdown
Member

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.

@kylecarbs kylecarbs requested review from ammario and bpmct October 6, 2022 17:59
@kylecarbs kylecarbs self-assigned this Oct 6, 2022
Comment thread cli/server_test.go
"--in-memory",
"--address", ":0",
"--access-url", "example.com",
"--access-url", "localhost:3000/",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why provide access-url twice?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an accident

@ammario
Copy link
Copy Markdown
Member

ammario commented Oct 6, 2022

(cc @endingwithali this affects docs)

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.
@endingwithali
Copy link
Copy Markdown
Contributor

endingwithali commented Oct 6, 2022

yes! auto setting tunnel is a great idea. :)

to 100% clarify - when running coder without an access url, you wont need to edit coder.env before running coder
?

@f0ssel
Copy link
Copy Markdown
Member

f0ssel commented Oct 6, 2022

Great change 👍

Comment thread install.sh Outdated
Comment thread docs/install/packages.md Outdated
Comment thread docs/install/docker.md
Docker is required. See the [official installation documentation](https://docs.docker.com/install/).

## Run Coder with built-in database and tunnel (quick)
## Run Coder with the built-in database (quick)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's still mention we're using the tunnel here, both are configured here based on the lack of flags.

@ammario
Copy link
Copy Markdown
Member

ammario commented Oct 6, 2022

I assume this change won't break existing deployments?

kylecarbs and others added 2 commits October 6, 2022 16:47
Co-authored-by: Ben Potter <ben@coder.com>
Co-authored-by: Ben Potter <ben@coder.com>
@kylecarbs
Copy link
Copy Markdown
Member Author

kylecarbs commented Oct 6, 2022

@ammario it won't unless they aren't specifying an access URL, but even then it won't break them unless they are air-gapped and the tunnel will fail with a message indicating that an access URL should be specified.

@kylecarbs kylecarbs requested a review from a team as a code owner October 7, 2022 01:42
@kylecarbs kylecarbs requested review from code-asher and removed request for a team October 7, 2022 01:42
@kylecarbs kylecarbs merged commit 3cc77d9 into main Oct 7, 2022
@kylecarbs kylecarbs deleted the tunneldefault branch October 7, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants