From 55cad2804c433bbecbd22e511941631a079e23da Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Tue, 30 Apr 2019 22:25:40 -0500 Subject: [PATCH 1/7] Added Password updates to the self hosted index.md Added Password updates to the self hosted index.md. See issue #548 for the documentation. Resolves #624 . --- doc/self-hosted/index.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index 9f73cd47543f..0d47baf3f8a9 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -50,10 +50,27 @@ Options: -p, --port Port to bind on. (default: 8443) -N, --no-auth Start without requiring authentication. -H, --allow-http Allow http connections. - -P, --password Specify a password for authentication. + -P, --password DEPRECATED: Use "PASSWORD" environment variable instead. Specify a password for authentication. --disable-telemetry Disables ALL telemetry. --help output usage information ``` + + ### Password + If you're using the binary, the latest version of code-server allows you to set an environment variable PASSWORD + +``` +export PASSWORD="yourpassword" +./code-server --allow-http +``` +If you're using docker, you can use the -e flag to pass environment variables to your container + +```docker run -it -p 127.0.0.1:8443:8443 -e PASSWORD='yourpassword' -v "${PWD}:/home/coder/project" codercom/code-server --allow-http``` + +If you're using older versions, you can use the --password argument. + +```./code-server --allow-http --password "yourpassword"``` + +```docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server --allow-http --password "yourpassword"``` ### Data Directory Use `code-server -d (path/to/directory)` or `code-server --data-dir=(path/to/directory)`, excluding the parentheses to specify the root folder that VS Code will start in. From 630f25150da26d2c80971b31d502c9bb3ff4b082 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Wed, 1 May 2019 23:31:53 -0500 Subject: [PATCH 2/7] Add version of password change to env vars --- doc/self-hosted/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index 0d47baf3f8a9..326e601f1238 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -66,7 +66,7 @@ If you're using docker, you can use the -e flag to pass environment variables to ```docker run -it -p 127.0.0.1:8443:8443 -e PASSWORD='yourpassword' -v "${PWD}:/home/coder/project" codercom/code-server --allow-http``` -If you're using older versions, you can use the --password argument. +If you're using versions older than 1.903-vsc1.33.1, you must use the --password argument. ```./code-server --allow-http --password "yourpassword"``` From 6ef0a337447a871423494a97b7f5c6e61a3c2c4c Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Wed, 1 May 2019 23:57:05 -0500 Subject: [PATCH 3/7] Add depreciation version in Options --- doc/self-hosted/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index 326e601f1238..b0a316f328fa 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -50,7 +50,7 @@ Options: -p, --port Port to bind on. (default: 8443) -N, --no-auth Start without requiring authentication. -H, --allow-http Allow http connections. - -P, --password DEPRECATED: Use "PASSWORD" environment variable instead. Specify a password for authentication. + -P, --password DEPRECATED in 1.903-vsc1.33.1: Use "PASSWORD" environment variable instead. Specify a password for authentication. --disable-telemetry Disables ALL telemetry. --help output usage information ``` From ad0738d45de6d9e5945ba9c02155ea51d3ea4c32 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Fri, 10 May 2019 17:48:34 -0500 Subject: [PATCH 4/7] Update doc/self-hosted/index.md Co-Authored-By: Sergio Moura --- doc/self-hosted/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index b0a316f328fa..17c85b1650da 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -70,7 +70,7 @@ If you're using versions older than 1.903-vsc1.33.1, you must use the --password ```./code-server --allow-http --password "yourpassword"``` -```docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server --allow-http --password "yourpassword"``` +`docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server --allow-http --password "yourpassword"` ### Data Directory Use `code-server -d (path/to/directory)` or `code-server --data-dir=(path/to/directory)`, excluding the parentheses to specify the root folder that VS Code will start in. From 567a183c2a64a0aea8793e39ac34e640075fbd21 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Fri, 10 May 2019 17:52:56 -0500 Subject: [PATCH 5/7] Update index.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix Triple ‘s --- doc/self-hosted/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index 17c85b1650da..00031ea70607 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -64,11 +64,11 @@ export PASSWORD="yourpassword" ``` If you're using docker, you can use the -e flag to pass environment variables to your container -```docker run -it -p 127.0.0.1:8443:8443 -e PASSWORD='yourpassword' -v "${PWD}:/home/coder/project" codercom/code-server --allow-http``` +`docker run -it -p 127.0.0.1:8443:8443 -e PASSWORD='yourpassword' -v "${PWD}:/home/coder/project" codercom/code-server --allow-http` If you're using versions older than 1.903-vsc1.33.1, you must use the --password argument. -```./code-server --allow-http --password "yourpassword"``` +`./code-server --allow-http --password "yourpassword"` `docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server --allow-http --password "yourpassword"` From 2f02ade7d6d25adcb776bad97b60dc2ceb75a8ef Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Thu, 4 Jul 2019 22:22:09 -0500 Subject: [PATCH 6/7] Update index.md --- doc/self-hosted/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index 00031ea70607..2e37d5ad5968 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -50,7 +50,8 @@ Options: -p, --port Port to bind on. (default: 8443) -N, --no-auth Start without requiring authentication. -H, --allow-http Allow http connections. - -P, --password DEPRECATED in 1.903-vsc1.33.1: Use "PASSWORD" environment variable instead. Specify a password for authentication. + -P, --password DEPRECATED: Use the PASSWORD environment variable instead. Specify a password for authentic +ation. --disable-telemetry Disables ALL telemetry. --help output usage information ``` From d56c91a5c5113c8ced1bc80582e16b73bcb0f9dd Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Thu, 4 Jul 2019 22:24:40 -0500 Subject: [PATCH 7/7] Update index.md --- doc/self-hosted/index.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index 2e37d5ad5968..7719f1919bc5 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -57,7 +57,7 @@ ation. ``` ### Password - If you're using the binary, the latest version of code-server allows you to set an environment variable PASSWORD + Since version 1.903-vsc1.33.1, code-server allows you to set an environment variable PASSWORD. ``` export PASSWORD="yourpassword" @@ -67,12 +67,6 @@ If you're using docker, you can use the -e flag to pass environment variables to `docker run -it -p 127.0.0.1:8443:8443 -e PASSWORD='yourpassword' -v "${PWD}:/home/coder/project" codercom/code-server --allow-http` -If you're using versions older than 1.903-vsc1.33.1, you must use the --password argument. - -`./code-server --allow-http --password "yourpassword"` - -`docker run -it -p 127.0.0.1:8443:8443 -v "${PWD}:/home/coder/project" codercom/code-server --allow-http --password "yourpassword"` - ### Data Directory Use `code-server -d (path/to/directory)` or `code-server --data-dir=(path/to/directory)`, excluding the parentheses to specify the root folder that VS Code will start in.