File tree 3 files changed +28
-10
lines changed
3 files changed +28
-10
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ deploy:
61
61
62
62
- provider : script
63
63
skip_cleanup : true
64
- script : docker build -f ./scripts/ci.dockerfile --build-arg - t codercom/code-server:"$TAG" -t codercom/code-server:v2 . && docker push codercom/code-server:"$TAG" && docker push codercom/code-server:v2
64
+ script : docker build -f ./scripts/ci.dockerfile -t codercom/code-server:"$TAG" -t codercom/code-server:v2 . && docker push codercom/code-server:"$TAG" && docker push codercom/code-server:v2
65
65
on :
66
66
repo : cdr/code-server
67
67
branch : master
Original file line number Diff line number Diff line change @@ -56,6 +56,33 @@ arguments when launching code-server with Docker. See
56
56
- For self-hosting and other information see [ doc/quickstart.md] ( doc/quickstart.md ) .
57
57
- For hosting on cloud platforms see [ doc/deploy.md] ( doc/deploy.md ) .
58
58
59
+ ## Security
60
+
61
+ ### Authentication
62
+ To enable built-in password authentication use ` code-server --auth password ` . By
63
+ default it will use a randomly generated password but you can set the
64
+ ` $PASSWORD ` environment variable to use your own.
65
+
66
+ Do not expose ` code-server ` to the open internet without some form of
67
+ authentication.
68
+
69
+ ### Encrypting traffic with HTTPS
70
+ If you aren't doing SSL termination elsewhere you can directly give
71
+ ` code-server ` a certificate with ` code-server --cert ` followed by the path to
72
+ your certificate. Additionally, you can use certificate keys with ` --cert-key `
73
+ followed by the path to your key. If you pass ` --cert ` without any path
74
+ ` code-server ` will generate a self-signed certificate.
75
+
76
+ If ` code-server ` has been passed a certificate it will also respond to HTTPS
77
+ requests and will redirect all HTTP requests to HTTPS. Otherwise it will respond
78
+ only to HTTP requests.
79
+
80
+ You can use [ Let's Encrypt] ( https://letsencrypt.org/ ) to get an SSL certificate
81
+ for free.
82
+
83
+ Do not expose ` code-server ` to the open internet without SSL, whether built-in
84
+ or through a proxy.
85
+
59
86
### Build
60
87
61
88
See
Original file line number Diff line number Diff line change 7
7
## Usage
8
8
Run ` code-server --help ` to view available options.
9
9
10
- ### Encrypting traffic with HTTPS
11
- To encrypt the traffic between the browser and server use ` code-server --cert `
12
- followed by the path to your certificate. Additionally, you can use certificate
13
- keys with ` --cert-key ` followed by the path to your key. If you pass ` --cert `
14
- without any path code-server will generate a self-signed certificate.
15
-
16
- You can use [ Let's Encrypt] ( https://letsencrypt.org/ ) to get an SSL certificate
17
- for free.
18
-
19
10
### Nginx Reverse Proxy
20
11
The trailing slashes are important.
21
12
You can’t perform that action at this time.
0 commit comments