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
feat: add passwordFile, hashedPasswordFile, githubAuthTokenFile and absProxyBasePath options (#10)
Adds the final four options
- `passwordFile`
- `hashedPasswordFile`
- `githubAuthTokenFile`
- `absProxyBasePath`
The decision to pass credentials via a file instead of embedding them directly in the devcontainer.json is to allow people the ability to not commit the password to source control.
Copy file name to clipboardExpand all lines: src/code-server/README.md
+4
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ VS Code in the browser
15
15
16
16
| Options Id | Description | Type | Default Value |
17
17
|-----|-----|-----|-----|
18
+
| absProxyBasePath | The base path to prefix to all absproxy requests | string | - |
18
19
| appName | The name to use in branding. Will be shown in titlebar and welcome message. | string | - |
19
20
| auth | The type of authentication to use. When 'password' is selected, code-server will auto-generate a password. 'none' disables authentication entirely. | string | password |
20
21
| cert | Path to certificate. A self signed certificate is generated if none is provided. | string | - |
@@ -29,9 +30,12 @@ VS Code in the browser
29
30
| disableWorkspaceTrust | Disable Workspace Trust feature. This only affects the current session. | boolean | false |
30
31
| enableProposedAPI | Comma-separated list of VS Code extension IDs to enable proposed API features for. | string | - |
31
32
| extensions | Comma-separated list of VS Code extensions to install. Format: 'publisher.extension[@version]' (e.g., 'ms-python.python,ms-azuretools.vscode-docker'). | string | - |
33
+
| githubAuthTokenFile | Path to a file containing your GitHub auth token. | string | - |
34
+
| hashedPasswordFile | Path to a file containing the hashed password used for authentication. The password should be hashed with argon2 and be in the encoded form. This takes priority over `passwordFile`. | string | - |
32
35
| host | The address to bind to for the code-server. Use '0.0.0.0' to listen on all interfaces. | string | 127.0.0.1 |
33
36
| locale | Set VS Code display language and language shown on the login page. Format should be an IETF language tag (e.g., 'en', 'fr', 'zh-CN'). | string | - |
34
37
| logFile | Path to a file to send stdout and stderr logs to from code-server. | string | /tmp/code-server.log |
38
+
| passwordFile | Path to a file containing the password used for authentication. | string | - |
35
39
| port | The port to bind to for the code-server. | string | 8080 |
36
40
| proxyDomain | Domain used for proxying ports. | string | - |
37
41
| socket | Path to a socket. When specified, host and port will be ignored. | string | - |
Copy file name to clipboardExpand all lines: src/code-server/devcontainer-feature.json
+20
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,11 @@
4
4
"version": "1.0.0",
5
5
"description": "VS Code in the browser",
6
6
"options": {
7
+
"absProxyBasePath": {
8
+
"type": "string",
9
+
"default": "",
10
+
"description": "The base path to prefix to all absproxy requests"
11
+
},
7
12
"appName": {
8
13
"type": "string",
9
14
"default": "",
@@ -75,6 +80,16 @@
75
80
"default": "",
76
81
"description": "Comma-separated list of VS Code extensions to install. Format: 'publisher.extension[@version]' (e.g., 'ms-python.python,ms-azuretools.vscode-docker')."
77
82
},
83
+
"githubAuthTokenFile": {
84
+
"type": "string",
85
+
"default": "",
86
+
"description": "Path to a file containing your GitHub auth token."
87
+
},
88
+
"hashedPasswordFile": {
89
+
"type": "string",
90
+
"default": "",
91
+
"description": "Path to a file containing the hashed password used for authentication. The password should be hashed with argon2 and be in the encoded form. This takes priority over `passwordFile`."
92
+
},
78
93
"host": {
79
94
"type": "string",
80
95
"default": "127.0.0.1",
@@ -90,6 +105,11 @@
90
105
"default": "/tmp/code-server.log",
91
106
"description": "Path to a file to send stdout and stderr logs to from code-server."
92
107
},
108
+
"passwordFile": {
109
+
"type": "string",
110
+
"default": "",
111
+
"description": "Path to a file containing the password used for authentication."
0 commit comments