Skip to content

Commit 95164d0

Browse files
author
hackercat
authored
feat: add caddy example for serving from sub-path
1 parent d31439e commit 95164d0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/guide.md

+9
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,15 @@ mydomain.com
195195
reverse_proxy 127.0.0.1:8080
196196
```
197197

198+
If you want to serve `code-server` from a sub-path, below is sample configuration for Caddy:
199+
200+
```
201+
mydomain.com/code/* {
202+
uri strip_prefix /code
203+
reverse_proxy 127.0.0.1:8080
204+
}
205+
```
206+
198207
Remember to replace `mydomain.com` with your domain name!
199208

200209
5. Reload caddy with:

0 commit comments

Comments
 (0)