mirror of
https://github.com/cdr/code-server.git
synced 2025-12-06 08:27:17 +01:00
feat: add caddy example for serving from sub-path
This commit is contained in:
parent
d31439ec34
commit
95164d024c
1 changed files with 9 additions and 0 deletions
|
|
@ -195,6 +195,15 @@ mydomain.com
|
|||
reverse_proxy 127.0.0.1:8080
|
||||
```
|
||||
|
||||
If you want to serve `code-server` from a sub-path, below is sample configuration for Caddy:
|
||||
|
||||
```
|
||||
mydomain.com/code/* {
|
||||
uri strip_prefix /code
|
||||
reverse_proxy 127.0.0.1:8080
|
||||
}
|
||||
```
|
||||
|
||||
Remember to replace `mydomain.com` with your domain name!
|
||||
|
||||
5. Reload caddy with:
|
||||
|
|
|
|||
Loading…
Reference in a new issue