Skip to content

Commit a637e75

Browse files
committed
fixup: formatting
1 parent 985212d commit a637e75

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

docs/guide.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,6 @@ we recommend using another method, such as [Let's Encrypt](#let-encrypt) instead
115115
116116
### Port forwarding via code-server's built-in proxy
117117

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-
128118
### Using Let's Encrypt with Caddy
129119

130120
Using [Let's Encrypt](https://letsencrypt.org) is an option if you want to
@@ -313,6 +303,15 @@ If you're working on web services and want to access them locally, code-server
313303
can proxy to any port using either a subdomain or a subpath, allowing you to
314304
securely access these services using code-server's built-in authentication.
315305

306+
By default, ports running on the same machine as code-server can be accessed at
307+
{current_url}/proxy/{port}. For instance, if you have code-server running on
308+
localhost:8080 and a Python server running on localhost:8000, you could access
309+
it via http://localhost:8080/proxy/8000
310+
311+
You can also override the URL scheme for the proxy using the `VSCODE_PROXY_URI`
312+
environment variable. `VSCODE_PROXY_URI=https://{{port}}.kyle.dev` would forward
313+
an application running on localhost:3000 to https://3000.kyle.dev
314+
316315
### Using a subdomain
317316

318317
You will need a DNS entry that points to your server for each port you want to

0 commit comments

Comments
 (0)