From 647215b20e0899a762d15000dd62bc16c6962857 Mon Sep 17 00:00:00 2001 From: Alexis Emerson Date: Sun, 3 Sep 2023 21:03:37 -0600 Subject: [PATCH 1/8] Update configure.md Updated TLS instructions to include CODER_TLS_ADDRESS --- docs/admin/configure.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/admin/configure.md b/docs/admin/configure.md index 17ce483cb2f0f..e33e222824e1e 100644 --- a/docs/admin/configure.md +++ b/docs/admin/configure.md @@ -139,7 +139,8 @@ you can configure the server by setting the following variables in CODER_ACCESS_URL=https://coder.example.com # String. Address to serve the API and dashboard. -CODER_HTTP_ADDRESS=127.0.0.1:3000 +# Use 0.0.0.0:3000 for non-local connections +CODER_HTTP_ADDRESS=127.0.0.1:3000 # String. The URL of a PostgreSQL database to connect to. If empty, PostgreSQL binaries # will be downloaded from Maven (https://repo1.maven.org/maven2) and store all @@ -149,6 +150,9 @@ CODER_PG_CONNECTION_URL= # Boolean. Specifies if TLS will be enabled. CODER_TLS_ENABLE= +# If TLS_ENABLE=true && Opening access to outside or want to change TLS port: +CODER_TLS_ADDRESS=0.0.0.0:3443 + # String. Specifies the path to the certificate for TLS. It requires a PEM-encoded file. # To configure the listener to use a CA certificate, concatenate the primary # certificate and the CA certificate together. The primary certificate should From 8b9afa1229b0a707d77c2d1116be49237bf402fa Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 4 Sep 2023 08:11:59 +0000 Subject: [PATCH 2/8] make fmt --- docs/admin/configure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin/configure.md b/docs/admin/configure.md index e33e222824e1e..b053a2f55957f 100644 --- a/docs/admin/configure.md +++ b/docs/admin/configure.md @@ -140,7 +140,7 @@ CODER_ACCESS_URL=https://coder.example.com # String. Address to serve the API and dashboard. # Use 0.0.0.0:3000 for non-local connections -CODER_HTTP_ADDRESS=127.0.0.1:3000 +CODER_HTTP_ADDRESS=127.0.0.1:3000 # String. The URL of a PostgreSQL database to connect to. If empty, PostgreSQL binaries # will be downloaded from Maven (https://repo1.maven.org/maven2) and store all From aa0f655fee9114d4320408fa66b17fb90db5b1a3 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 4 Sep 2023 11:17:19 +0300 Subject: [PATCH 3/8] use full variable name --- docs/admin/configure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin/configure.md b/docs/admin/configure.md index b053a2f55957f..aeeeb0ff94967 100644 --- a/docs/admin/configure.md +++ b/docs/admin/configure.md @@ -150,7 +150,7 @@ CODER_PG_CONNECTION_URL= # Boolean. Specifies if TLS will be enabled. CODER_TLS_ENABLE= -# If TLS_ENABLE=true && Opening access to outside or want to change TLS port: +# If CODER_TLS_ENABLE=true && Opening access to outside or want to change TLS port: CODER_TLS_ADDRESS=0.0.0.0:3443 # String. Specifies the path to the certificate for TLS. It requires a PEM-encoded file. From 4cd1ca8d899124c6658a041efe0ad5568b9dabf0 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 5 Sep 2023 12:11:31 +0300 Subject: [PATCH 4/8] link to web-server docs --- docs/admin/configure.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/admin/configure.md b/docs/admin/configure.md index aeeeb0ff94967..6604c04f49458 100644 --- a/docs/admin/configure.md +++ b/docs/admin/configure.md @@ -139,8 +139,7 @@ you can configure the server by setting the following variables in CODER_ACCESS_URL=https://coder.example.com # String. Address to serve the API and dashboard. -# Use 0.0.0.0:3000 for non-local connections -CODER_HTTP_ADDRESS=127.0.0.1:3000 +CODER_HTTP_ADDRESS=0.0.0.0:3000 # String. The URL of a PostgreSQL database to connect to. If empty, PostgreSQL binaries # will be downloaded from Maven (https://repo1.maven.org/maven2) and store all @@ -150,7 +149,7 @@ CODER_PG_CONNECTION_URL= # Boolean. Specifies if TLS will be enabled. CODER_TLS_ENABLE= -# If CODER_TLS_ENABLE=true && Opening access to outside or want to change TLS port: +# If CODER_TLS_ENABLE=true, also set: CODER_TLS_ADDRESS=0.0.0.0:3443 # String. Specifies the path to the certificate for TLS. It requires a PEM-encoded file. @@ -186,6 +185,10 @@ To configure Coder behind a corporate proxy, set the environment variables `HTTP_PROXY` and `HTTPS_PROXY`. Be sure to restart the server. Lowercase values (e.g. `http_proxy`) are also respected in this case. +## Configuring Coder behinf a revrese proxy + +To configure Coder behind a revres proxy, see our [web-server](https://github.com/RaineAllDay/coder/tree/main/examples/web-server) example docs. + ## Up Next - [Learn how to upgrade Coder](./upgrade.md). From 51804c2f17a5954623b8a6dc3dc1a7132a63cd69 Mon Sep 17 00:00:00 2001 From: Atif Ali Date: Tue, 5 Sep 2023 09:25:18 +0000 Subject: [PATCH 5/8] make fmt --- docs/admin/configure.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/admin/configure.md b/docs/admin/configure.md index 6604c04f49458..8255f50ad3c2c 100644 --- a/docs/admin/configure.md +++ b/docs/admin/configure.md @@ -187,7 +187,9 @@ To configure Coder behind a corporate proxy, set the environment variables ## Configuring Coder behinf a revrese proxy -To configure Coder behind a revres proxy, see our [web-server](https://github.com/RaineAllDay/coder/tree/main/examples/web-server) example docs. +To configure Coder behind a revres proxy, see our +[web-server](https://github.com/RaineAllDay/coder/tree/main/examples/web-server) +example docs. ## Up Next From a2ce9b705a59e0b353787f347ff1d11e1d882c26 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 5 Sep 2023 13:25:45 +0300 Subject: [PATCH 6/8] typo --- docs/admin/configure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin/configure.md b/docs/admin/configure.md index 8255f50ad3c2c..8ccbd79f9ed64 100644 --- a/docs/admin/configure.md +++ b/docs/admin/configure.md @@ -185,7 +185,7 @@ To configure Coder behind a corporate proxy, set the environment variables `HTTP_PROXY` and `HTTPS_PROXY`. Be sure to restart the server. Lowercase values (e.g. `http_proxy`) are also respected in this case. -## Configuring Coder behinf a revrese proxy +## Configuring Coder behind a reverse proxy To configure Coder behind a revres proxy, see our [web-server](https://github.com/RaineAllDay/coder/tree/main/examples/web-server) From e6a97d355a2c02c0ab6e9a90c76d41a34029a75b Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 5 Sep 2023 16:34:45 +0300 Subject: [PATCH 7/8] Update configure.md --- docs/admin/configure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/admin/configure.md b/docs/admin/configure.md index 8ccbd79f9ed64..f098be552f72b 100644 --- a/docs/admin/configure.md +++ b/docs/admin/configure.md @@ -188,7 +188,7 @@ To configure Coder behind a corporate proxy, set the environment variables ## Configuring Coder behind a reverse proxy To configure Coder behind a revres proxy, see our -[web-server](https://github.com/RaineAllDay/coder/tree/main/examples/web-server) +[reverse-proxy](https://coder.com/docs/v2/latest/admin/configure#tls--reverse-proxy) example docs. ## Up Next From 2b761543be5bbd5ec768e4287106785013eaf648 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Tue, 5 Sep 2023 22:04:47 +0300 Subject: [PATCH 8/8] remove duplication --- docs/admin/configure.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/admin/configure.md b/docs/admin/configure.md index f098be552f72b..7ec7faff7761d 100644 --- a/docs/admin/configure.md +++ b/docs/admin/configure.md @@ -185,12 +185,6 @@ To configure Coder behind a corporate proxy, set the environment variables `HTTP_PROXY` and `HTTPS_PROXY`. Be sure to restart the server. Lowercase values (e.g. `http_proxy`) are also respected in this case. -## Configuring Coder behind a reverse proxy - -To configure Coder behind a revres proxy, see our -[reverse-proxy](https://coder.com/docs/v2/latest/admin/configure#tls--reverse-proxy) -example docs. - ## Up Next - [Learn how to upgrade Coder](./upgrade.md).