diff options
author | Fluf <36822577+flufmonster@users.noreply.github.com> | 2018-05-23 20:24:04 -0400 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-05-24 08:24:04 +0800 |
commit | 48797e71999e727a0c0669c5784d56659986aecb (patch) | |
tree | 8b93af922a35988e487c4bb95f847116f96179ec | |
parent | 4ba9745cee8d16755eb3a54d60b1232c2c9e3986 (diff) | |
download | gitea-48797e71999e727a0c0669c5784d56659986aecb.tar.gz gitea-48797e71999e727a0c0669c5784d56659986aecb.zip |
Gitea with Caddy with sub-path documentation. (#4028)
Matches rest of headings
-rw-r--r-- | docs/content/doc/usage/reverse-proxies.en-us.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/content/doc/usage/reverse-proxies.en-us.md b/docs/content/doc/usage/reverse-proxies.en-us.md index 2fde3ec314..b067aeb49c 100644 --- a/docs/content/doc/usage/reverse-proxies.en-us.md +++ b/docs/content/doc/usage/reverse-proxies.en-us.md @@ -91,7 +91,7 @@ git.example.com { } ``` -##### How do I set up a sub-path with Caddy? +## Using Caddy with a Sub-path as a reverse proxy In case you already have a site, and you want Gitea to share the domain name, you can setup Caddy to serve Gitea under a sub-path by adding the following to you server block in your Caddyfile: @@ -100,3 +100,5 @@ git.example.com { proxy /git/ http://localhost:3000 # Note: Trailing Slash after /git/ } ``` + +Then set `[server] ROOT_URL = http://git.example.com/git/` in your configuration. |