|
2 | 2 | <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
3 | 3 | # FAQ
|
4 | 4 |
|
5 |
| -- [Questions?](#questions) |
6 |
| -- [iPad Status?](#ipad-status) |
7 |
| -- [Community Projects (awesome-code-server)](#community-projects-awesome-code-server) |
8 |
| -- [How can I reuse my VS Code configuration?](#how-can-i-reuse-my-vs-code-configuration) |
9 |
| -- [Differences compared to VS Code?](#differences-compared-to-vs-code) |
10 |
| - - [Installing an extension](#installing-an-extension) |
11 |
| -- [How can I request a missing extension?](#how-can-i-request-a-missing-extension) |
12 |
| -- [Installing an extension manually](#installing-an-extension-manually) |
13 |
| -- [How do I configure the marketplace URL?](#how-do-i-configure-the-marketplace-url) |
14 |
| -- [Where are extensions stored?](#where-are-extensions-stored) |
15 |
| -- [How is this different from VS Code Codespaces?](#how-is-this-different-from-vs-code-codespaces) |
16 |
| -- [How should I expose code-server to the internet?](#how-should-i-expose-code-server-to-the-internet) |
17 |
| -- [Can I store my password hashed?](#can-i-store-my-password-hashed) |
18 |
| -- [How do I securely access web services?](#how-do-i-securely-access-web-services) |
19 |
| - - [Sub-paths](#sub-paths) |
20 |
| - - [Sub-domains](#sub-domains) |
21 |
| -- [Why does the code-server proxy strip `/proxy/<port>` from the request path?](#why-does-the-code-server-proxy-strip-proxyport-from-the-request-path) |
22 |
| - - [Proxying to Create React App](#proxying-to-create-react-app) |
23 |
| -- [Multi-tenancy](#multi-tenancy) |
24 |
| -- [Docker in code-server container?](#docker-in-code-server-container) |
25 |
| -- [How can I disable telemetry?](#how-can-i-disable-telemetry) |
26 |
| -- [How does code-server decide what workspace or folder to open?](#how-does-code-server-decide-what-workspace-or-folder-to-open) |
27 |
| -- [How do I debug issues with code-server?](#how-do-i-debug-issues-with-code-server) |
28 |
| -- [Heartbeat File](#heartbeat-file) |
29 |
| -- [Healthz endpoint](#healthz-endpoint) |
30 |
| -- [How does the config file work?](#how-does-the-config-file-work) |
31 |
| -- [Isn't an install script piped into sh insecure?](#isnt-an-install-script-piped-into-sh-insecure) |
32 |
| -- [How do I make my keyboard shortcuts work?](#how-do-i-make-my-keyboard-shortcuts-work) |
33 |
| -- [How do I access my Documents/Downloads/Desktop folders in code-server on OSX?](#how-do-i-access-my-documentsdownloadsdesktop-folders-in-code-server-on-osx) |
34 |
| -- [Differences compared to Theia?](#differences-compared-to-theia) |
35 |
| -- [`$HTTP_PROXY`, `$HTTPS_PROXY`, `$NO_PROXY`](#http_proxy-https_proxy-no_proxy) |
36 |
| -- [Enterprise](#enterprise) |
| 5 | +- [FAQ](#faq) |
| 6 | + - [Questions?](#questions) |
| 7 | + - [iPad Status?](#ipad-status) |
| 8 | + - [Community Projects (awesome-code-server)](#community-projects-awesome-code-server) |
| 9 | + - [How can I reuse my VS Code configuration?](#how-can-i-reuse-my-vs-code-configuration) |
| 10 | + - [Differences compared to VS Code?](#differences-compared-to-vs-code) |
| 11 | + - [Installing an extension](#installing-an-extension) |
| 12 | + - [How can I request a missing extension?](#how-can-i-request-a-missing-extension) |
| 13 | + - [Installing an extension manually](#installing-an-extension-manually) |
| 14 | + - [How do I configure the marketplace URL?](#how-do-i-configure-the-marketplace-url) |
| 15 | + - [Where are extensions stored?](#where-are-extensions-stored) |
| 16 | + - [How is this different from VS Code Codespaces?](#how-is-this-different-from-vs-code-codespaces) |
| 17 | + - [How should I expose code-server to the internet?](#how-should-i-expose-code-server-to-the-internet) |
| 18 | + - [Can I store my password hashed?](#can-i-store-my-password-hashed) |
| 19 | + - [How do I securely access web services?](#how-do-i-securely-access-web-services) |
| 20 | + - [Sub-paths](#sub-paths) |
| 21 | + - [Sub-domains](#sub-domains) |
| 22 | + - [Why does the code-server proxy strip `/proxy/<port>` from the request path?](#why-does-the-code-server-proxy-strip-proxyport-from-the-request-path) |
| 23 | + - [Proxying to Create React App](#proxying-to-create-react-app) |
| 24 | + - [Multi-tenancy](#multi-tenancy) |
| 25 | + - [Docker in code-server container?](#docker-in-code-server-container) |
| 26 | + - [How can I disable telemetry?](#how-can-i-disable-telemetry) |
| 27 | + - [How does code-server decide what workspace or folder to open?](#how-does-code-server-decide-what-workspace-or-folder-to-open) |
| 28 | + - [How do I debug issues with code-server?](#how-do-i-debug-issues-with-code-server) |
| 29 | + - [Heartbeat File](#heartbeat-file) |
| 30 | + - [Healthz endpoint](#healthz-endpoint) |
| 31 | + - [How does the config file work?](#how-does-the-config-file-work) |
| 32 | + - [Isn't an install script piped into sh insecure?](#isnt-an-install-script-piped-into-sh-insecure) |
| 33 | + - [How do I make my keyboard shortcuts work?](#how-do-i-make-my-keyboard-shortcuts-work) |
| 34 | + - [How do I access my Documents/Downloads/Desktop folders in code-server on OSX?](#how-do-i-access-my-documentsdownloadsdesktop-folders-in-code-server-on-osx) |
| 35 | + - [Differences compared to Theia?](#differences-compared-to-theia) |
| 36 | + - [`$HTTP_PROXY`, `$HTTPS_PROXY`, `$NO_PROXY`](#http_proxy-https_proxy-no_proxy) |
| 37 | + - [Enterprise](#enterprise) |
37 | 38 |
|
38 | 39 | <!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
39 | 40 |
|
@@ -205,17 +206,19 @@ Again, please follow [./guide.md](./guide.md) for our recommendations on setting
|
205 | 206 |
|
206 | 207 | Yes you can! Set the value of `hashed-password` instead of `password`. Generate the hash with:
|
207 | 208 |
|
208 |
| -``` |
209 |
| -printf "thisismypassword" | sha256sum | cut -d' ' -f1 |
| 209 | +```shell |
| 210 | +echo -n "password" | npx argon2-cli -e |
| 211 | +$argon2i$v=19$m=4096,t=3,p=1$wst5qhbgk2lu1ih4dmuxvg$ls1alrvdiwtvzhwnzcm1dugg+5dto3dt1d5v9xtlws4 |
| 212 | + |
210 | 213 | ```
|
211 | 214 |
|
212 |
| -Of course replace `thisismypassword` with your actual password. |
| 215 | +Of course replace `thisismypassword` with your actual password and **remember to put it inside quotes**! |
213 | 216 |
|
214 | 217 | Example:
|
215 | 218 |
|
216 | 219 | ```yaml
|
217 | 220 | auth: password
|
218 |
| -hashed-password: 1da9133ab9dbd11d2937ec8d312e1e2569857059e73cc72df92e670928983ab5 # You got this from the command above |
| 221 | +hashed-password: "$argon2i$v=19$m=4096,t=3,p=1$wST5QhBgk2lu1ih4DMuxvg$LS1alrVdIWtvZHwnzCM1DUGg+5DTO3Dt1d5v9XtLws4" |
219 | 222 | ```
|
220 | 223 |
|
221 | 224 | ## How do I securely access web services?
|
|
0 commit comments