You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -130,7 +132,8 @@ Container images are configured using parameters passed at runtime (such as thos
130
132
|`-e PUID=1000`| for UserID - see below for explanation |
131
133
|`-e PGID=1000`| for GroupID - see below for explanation |
132
134
|`-e TZ=Europe/London`| Specify a timezone to use EG Europe/London |
133
-
|`-e PASSWORD=password`| Optional web gui password, if not provided, there will be no auth. |
135
+
|`-e PASSWORD=password`| Optional web gui password, if `PASSWORD` or `HASHED_PASSWORD` is not provided, there will be no auth. |
136
+
|`-e HASHED_PASSWORD=`| Optional web gui password, overrides `PASSWORD`, instructions on how to create it is below. |
134
137
|`-e SUDO_PASSWORD=password`| If this optional variable is set, user will have sudo access in the code-server terminal with the specified password. |
135
138
|`-e SUDO_PASSWORD_HASH=`| Optionally set sudo password via hash (takes priority over `SUDO_PASSWORD` var). Format is `$type$salt$hashed`. |
136
139
|`-e PROXY_DOMAIN=code-server.my.domain`| If this optional variable is set, this domain will be proxied for subdomain proxying. See [Documentation](https://github.com/cdr/code-server/blob/master/doc/FAQ.md#sub-domains)|
@@ -170,14 +173,18 @@ In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as bel
170
173
171
174
## Application Setup
172
175
173
-
Access the webui at `http://<your-ip>:8443`.
174
-
For github integration, drop your ssh key in to `/config/.ssh`.
175
-
Then open a terminal from the top menu and set your github username and email via the following commands
176
-
```
176
+
Access the webui at `http://<your-ip>:8443`.
177
+
For github integration, drop your ssh key in to `/config/.ssh`.
178
+
Then open a terminal from the top menu and set your github username and email via the following commands
179
+
180
+
```bash
177
181
git config --global user.name "username"
178
182
git config --global user.email "email address"
179
183
```
180
184
185
+
### Hashed code-server password
186
+
To create the [hashed password](https://github.com/cdr/code-server/blob/master/doc/FAQ.md#can-i-store-my-password-hashed), use printf instead of echo as echo introduces newlines in the hash.
187
+
181
188
182
189
## Docker Mods
183
190
[](https://mods.linuxserver.io/?mod=code-server"view available mods for this container.")[](https://mods.linuxserver.io/?mod=universal"view available universal mods.")
@@ -250,6 +257,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
250
257
251
258
## Versions
252
259
260
+
***04.02.20:** - Allow setting gui password via hash using env var `HASHED_PASSWORD`.
253
261
***23.12.20:** - Allow setting sudo password via hash using env var `SUDO_PASSWORD_HASH`.
254
262
***29.05.20:** - Add --domain-proxy support.
255
263
***21.05.20:** - Shrink images, install via yarn, fix arm32v7 build.
project_blurb: "[{{ project_name|capitalize }}]({{ project_url }}) is VS Code running on a remote server, accessible through the browser.
8
-
8
+
9
9
- Code on your Chromebook, tablet, and laptop with a consistent dev environment.
10
10
11
11
- If you have a Windows or Mac workstation, more easily develop for Linux.
@@ -47,7 +47,8 @@ param_env_vars:
47
47
# optional container parameters
48
48
opt_param_usage_include_env: true
49
49
opt_param_env_vars:
50
-
- { env_var: "PASSWORD", env_value: "password", desc: "Optional web gui password, if not provided, there will be no auth." }
50
+
- { env_var: "PASSWORD", env_value: "password", desc: "Optional web gui password, if `PASSWORD` or `HASHED_PASSWORD` is not provided, there will be no auth." }
51
+
- { env_var: "HASHED_PASSWORD", env_value: "", desc: "Optional web gui password, overrides `PASSWORD`, instructions on how to create it is below." }
51
52
- { env_var: "SUDO_PASSWORD", env_value: "password", desc: "If this optional variable is set, user will have sudo access in the code-server terminal with the specified password." }
52
53
- { env_var: "SUDO_PASSWORD_HASH", env_value: "", desc: "Optionally set sudo password via hash (takes priority over `SUDO_PASSWORD` var). Format is `$type$salt$hashed`." }
53
54
- { env_var: "PROXY_DOMAIN", env_value: "code-server.my.domain", desc: "If this optional variable is set, this domain will be proxied for subdomain proxying. See [Documentation](https://github.com/cdr/code-server/blob/master/doc/FAQ.md#sub-domains)" }
@@ -58,17 +59,22 @@ optional_block_1_items: ""
58
59
# application setup block
59
60
app_setup_block_enabled: true
60
61
app_setup_block: |
61
-
Access the webui at `http://<your-ip>:8443`.
62
-
For github integration, drop your ssh key in to `/config/.ssh`.
63
-
Then open a terminal from the top menu and set your github username and email via the following commands
64
-
```
62
+
Access the webui at `http://<your-ip>:8443`.
63
+
For github integration, drop your ssh key in to `/config/.ssh`.
64
+
Then open a terminal from the top menu and set your github username and email via the following commands
65
+
66
+
```bash
65
67
git config --global user.name "username"
66
68
git config --global user.email "email address"
67
69
```
68
70
71
+
### Hashed code-server password
72
+
To create the [hashed password](https://github.com/cdr/code-server/blob/master/doc/FAQ.md#can-i-store-my-password-hashed), use printf instead of echo as echo introduces newlines in the hash.
73
+
69
74
70
75
# changelog
71
76
changelogs:
77
+
- { date: "04.02.20:", desc: "Allow setting gui password via hash using env var `HASHED_PASSWORD`." }
72
78
- { date: "23.12.20:", desc: "Allow setting sudo password via hash using env var `SUDO_PASSWORD_HASH`." }
0 commit comments