Skip to content

Commit a872850

Browse files
Merge pull request #3217 from catthehacker/caddy-sub-path
docs(guide.md): add `caddy` example for serving from sub-path
2 parents f746212 + 95164d0 commit a872850

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/guide.md

Lines changed: 9 additions & 0 deletions
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)