Skip to content

Commit 48797e7

Browse files
Fluflunny
authored andcommitted
Gitea with Caddy with sub-path documentation. (#4028)
Matches rest of headings
1 parent 4ba9745 commit 48797e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/content/doc/usage/reverse-proxies.en-us.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ git.example.com {
9191
}
9292
```
9393

94-
##### How do I set up a sub-path with Caddy?
94+
## Using Caddy with a Sub-path as a reverse proxy
9595

9696
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:
9797

@@ -100,3 +100,5 @@ git.example.com {
100100
proxy /git/ http://localhost:3000 # Note: Trailing Slash after /git/
101101
}
102102
```
103+
104+
Then set `[server] ROOT_URL = http://git.example.com/git/` in your configuration.

0 commit comments

Comments
 (0)