Skip to content

Commit 38a0706

Browse files
carlosazaustrekylecarbs
authored andcommitted
Add example with letsencrypt certificates
* updated the download link * added example with letsencrypt certificates
1 parent c7ae12c commit 38a0706

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/self-hosted/index.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
> NOTE: If you get stuck or need help, [file an issue](https://github.com/codercom/code-server/issues/new?&title=Improve+self-hosted+quickstart+guide), [tweet (@coderhq)](https://twitter.com/coderhq) or [email](mailto:[email protected]?subject=Self-hosted%20quickstart%20guide).
88
9-
This document pertains to Coder specific implementations of VS Code. For documentation on how to use VS Code itself, please refer to the official [documentation for VS Code](https://code.visualstudio.com/docs)
9+
This document pertains to Coder specific implementations of VS Code. For documentation on how to use VS Code itself, please refer to the official [documentation for VS Code](https://code.visualstudio.com/docs)
1010

1111
It takes just a few minutes to get your own self-hosted server running. If you've got a machine running macOS, Windows, or Linux, you're ready to start the binary which listens on port `8443` by default.
1212

@@ -58,19 +58,20 @@ OPTIONS
5858
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
5959

6060
### Host
61-
By default, code-server will use `0.0.0.0` as its address. This can be changed by using `code-server -h` or `code-server --host=` followed by the address you want to use.
61+
By default, code-server will use `0.0.0.0` as its address. This can be changed by using `code-server -h` or `code-server --host=` followed by the address you want to use.
6262
> Example: `code-server -h 127.0.0.1`
6363
6464
### Open
6565
You can have the server automatically open the VS Code in your browser on startup by using the `code server -o` or `code-server --open` flags
6666

67-
### Port
68-
By default, code-server will use `8443` as its port. This can be changed by using `code-server -p` or `code-server --port=` followed by the port you want to use.
67+
### Port
68+
By default, code-server will use `8443` as its port. This can be changed by using `code-server -p` or `code-server --port=` followed by the port you want to use.
6969
> Example: `code-server -p 9000`
7070
7171
### Cert and Cert Key
7272
To encrypt the traffic between the browser and server use `code-server --cert=` followed by the path to your `.cer` file. Additionally, you can use certificate keys with `code-server --cert-key` followed by the path to your `.key` file.
7373
> Example (certificate and key): `code-server --cert /etc/letsencrypt/live/example.com/fullchain.cer --cert-key /etc/letsencrypt/live/example.com/fullchain.key`
74+
> Example (if you are using Letsencrypt or similar): `code-server --cert /etc/letsencrypt/live/example.com/fullchain.pem --cert-key /etc/letsencrypt/live/example.com/privkey.key`
7475
7576
> To ensure the connection between you and your server is encrypted view our guide on [securing your setup](../security/ssl.md)
7677

0 commit comments

Comments
 (0)