Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita040bcc

Browse files
authored
docs: clarify access URL in install flow (#5626)
* fix: TLS disabled copy* clarify default access URL* add docs for coder address
1 parent0374af2 commita040bcc

File tree

5 files changed

+30
-7
lines changed

5 files changed

+30
-7
lines changed

‎cli/server.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func Server(vip *viper.Viper, newAPI func(context.Context, *coderd.Options) (*co
112112
returnxerrors.Errorf("TLS address must be set if TLS is enabled")
113113
}
114114
if!cfg.TLS.Enable.Value&&cfg.HTTPAddress.Value=="" {
115-
returnxerrors.Errorf("either HTTPorTLS must be enabled")
115+
returnxerrors.Errorf("TLS is disabled. Enable with --tls-enableorspecify a HTTP address")
116116
}
117117

118118
// Disable rate limits if the `--dangerous-disable-rate-limits` flag

‎cli/server_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ func TestServer(t *testing.T) {
742742
)
743743
err:=root.ExecuteContext(ctx)
744744
require.Error(t,err)
745-
require.ErrorContains(t,err,"either HTTPorTLS must be enabled")
745+
require.ErrorContains(t,err,"TLS is disabled. Enable with --tls-enableorspecify a HTTP address")
746746
})
747747

748748
t.Run("NoTLSAddress",func(t*testing.T) {

‎docs/admin/configure.md‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ should not be localhost.
1414
If an access URL is not specified, Coder will create
1515
a publicly accessible URL to reverse proxy your deployment for simple setup.
1616

17+
##Address
18+
19+
You can change which port(s) Coder listens on.
20+
21+
```sh
22+
# Listen on port 80
23+
export CODER_HTTP_ADDRESS=0.0.0.0:80
24+
25+
# Enable TLS and listen on port 443)
26+
export CODER_TLS_ENABLE=true
27+
export CODER_TLS_ADDRESS=0.0.0.0:443
28+
29+
## Redirect from HTTP to HTTPS
30+
export CODER_TLS_REDIRECT_HTTP=true
31+
32+
# Start the Coder server
33+
coder server
34+
```
35+
1736
##Wildcard access URL
1837

1938
`CODER_WILDCARD_ACCESS_URL` is necessary for[port forwarding](../networking/port-forwarding.md#dashboard)
@@ -55,7 +74,7 @@ configure the server by setting the following variables in `/etc/coder.d/coder.e
5574
CODER_ACCESS_URL=https://coder.example.com
5675

5776
#String. Address to serve the API and dashboard.
58-
CODER_ADDRESS=127.0.0.1:3000
77+
CODER_HTTP_ADDRESS=127.0.0.1:3000
5978

6079
#String. The URL of a PostgreSQL database to connect to. If empty, PostgreSQL binaries
6180
#will be downloaded from Maven (https://repo1.maven.org/maven2) and store all

‎docs/install/install.sh.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ You can modify the installation process by including flags. Run the help command
1818
curl -fsSL https://coder.com/install.sh| sh -s -- --help
1919
```
2020

21-
After installing, use the instructions in your terminal to start the Coder server and create your first account.
21+
After installing, use the in-terminal instructions to start the Coder server manually via`coder server` or as a system package.
22+
23+
By default, the Coder server runs on`http://127.0.0.1:3000` and uses a[public tunnel](../admin/configure.md#tunnel) for workspace connections.
2224

2325
##Next steps
2426

25-
-[Quickstart](../quickstart.md)
2627
-[Configuring Coder](../admin/configure.md)
2728
-[Templates](../templates.md)

‎install.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ echo_systemd_postinstall() {
128128
cath<<EOF
129129
$1 package has been installed.
130130
131-
RunCoder:
131+
To run aCoder server:
132132
133133
# Start Coder now and on reboot
134134
$ sudo systemctl enable --now coder
@@ -137,7 +137,10 @@ Run Coder:
137137
# Or just run the server directly
138138
$ coder server
139139
140-
Use Coder:
140+
Default URL: http://127.0.0.1:3000
141+
Configuring Coder: https://coder.com/docs/coder-oss/admin/configure
142+
143+
To connect to a Coder deployment:
141144
142145
$ coder login <deployment url>
143146

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp