File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -65,23 +65,29 @@ only to HTTP requests.
65
65
You can use [ Let's Encrypt] ( https://letsencrypt.org/ ) to get an SSL certificate
66
66
for free.
67
67
68
- ## How do I access web services?
68
+ ## How do I securely access web services?
69
69
70
70
code-server is capable of proxying to any port using either a subdomain or a
71
- subpath.
71
+ subpath which means you can securely access these services using code-server's
72
+ built-in authentication.
72
73
73
74
### Sub-domains
74
75
75
- Set up a wildcard certificate for your domain and a wildcard DNS entry (or you
76
- can configure each subdomain individually for the ports you expect to use).
76
+ You will need a DNS entry that points to your server for each port you want to
77
+ access. You can either set up a wildcard DNS entry for ` *.<domain> ` if your domain
78
+ name registrar supports it or you can create one for every port you want to
79
+ access (` 3000.<domain> ` , ` 8080.<domain> ` , etc).
80
+
81
+ You should also set up TLS certificates for these subdomains, either using a
82
+ wildcard certificate for ` *.<domain> ` or individual certificates for each port.
77
83
78
84
Start code-server with the ` --proxy-domain ` flag set to your domain.
79
85
80
86
```
81
- code-server --proxy-domain coder.com
87
+ code-server --proxy-domain <domain>
82
88
```
83
89
84
- Now you can browse to ` <port>.coder.com ` . Note that this uses the host header so
90
+ Now you can browse to ` <port>.<domain> ` . Note that this uses the host header so
85
91
ensure your reverse proxy forwards that information if you are using one.
86
92
87
93
### Sub-paths
You can’t perform that action at this time.
0 commit comments