-
Notifications
You must be signed in to change notification settings - Fork 875
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
Conversation
cli/server_test.go
Outdated
@@ -127,6 +129,7 @@ func TestServer(t *testing.T) { | |||
"server", | |||
"--in-memory", | |||
"--address", ":0", | |||
"--access-url", "example.com", | |||
"--access-url", "localhost:3000/", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an accident
(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.
5882d6e
to
ef8cb8a
Compare
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 |
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) |
There was a problem hiding this comment.
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.
I assume this change won't break existing deployments? |
Co-authored-by: Ben Potter <ben@coder.com>
Co-authored-by: Ben Potter <ben@coder.com>
@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. |
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.