Skip to content

feat: Add tunnel by default #4399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Oct 7, 2022
Merged

feat: Add tunnel by default #4399

merged 7 commits into from
Oct 7, 2022

Conversation

kylecarbs
Copy link
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
@@ -127,6 +129,7 @@ func TestServer(t *testing.T) {
"server",
"--in-memory",
"--address", ":0",
"--access-url", "example.com",
"--access-url", "localhost:3000/",
Copy link
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
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
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
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
Contributor

f0ssel commented Oct 6, 2022

Great change 👍

@@ -4,7 +4,7 @@ You can install and run Coder using the official Docker images published on [Git

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
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
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
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