From 95164d024c9297a75935ed343972a1812b1f56e7 Mon Sep 17 00:00:00 2001 From: hackercat Date: Mon, 26 Apr 2021 08:16:32 +0200 Subject: [PATCH] feat: add `caddy` example for serving from sub-path --- docs/guide.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/guide.md b/docs/guide.md index 2e5ebc371..0c76092f3 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -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: