File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 5
5
6
6
- [ Expose code-server] ( #expose-code-server )
7
7
- [ Port forwarding via SSH] ( #port-forwarding-via-ssh )
8
+ - [ Port forwarding via code-server's built-in proxy] ( #port-forwarding-via-code-servers-built-in-proxy )
8
9
- [ Using Let's Encrypt with Caddy] ( #using-lets-encrypt-with-caddy )
9
10
- [ Using Let's Encrypt with NGINX] ( #using-lets-encrypt-with-nginx )
10
11
- [ Using a self-signed certificate] ( #using-a-self-signed-certificate )
@@ -112,6 +113,18 @@ we recommend using another method, such as [Let's Encrypt](#let-encrypt) instead
112
113
> [ GPG agent] ( https://wiki.gnupg.org/AgentForwarding ) to the instance to
113
114
> securely access GitHub and sign commits without having to copy your keys.
114
115
116
+ ### Port forwarding via code-server's built-in proxy
117
+
118
+ code-server has a proxy built-in for port-forwarding. By default, ports running
119
+ on the same machine as code-server can be accessed at
120
+ {current_url}/proxy/{port}. For instance, if you have code-server running on
121
+ localhost:8080 and a Python server running on localhost:8000, you could access
122
+ it via http://localhost:8080/proxy/8000
123
+
124
+ You can also override the URL scheme for the proxy using the ` VSCODE_PROXY_URI `
125
+ environment variable. ` VSCODE_PROXY_URI=https://{{port}}.kyle.dev ` would forward
126
+ an application running on localhost:3000 to https://3000.kyle.dev
127
+
115
128
### Using Let's Encrypt with Caddy
116
129
117
130
Using [ Let's Encrypt] ( https://letsencrypt.org ) is an option if you want to
You can’t perform that action at this time.
0 commit comments