未验证 提交 95164d02 编写于 作者: H hackercat 提交者: GitHub

feat: add `caddy` example for serving from sub-path

上级 d31439ec
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册