Skip to content

Docs: Update reverse-proxy instructions for Caddy #11655

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions docs/content/doc/usage/reverse-proxies.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,15 @@ If you want Caddy to serve your Gitea instance, you can add the following server

```
git.example.com {
proxy / http://localhost:3000
reverse_proxy localhost:3000
}
```

If you still use Caddy v1, use:

```
git.example.com {
proxy / localhost:3000
}
```

Expand All @@ -169,7 +177,18 @@ In case you already have a site, and you want Gitea to share the domain name, yo

```
git.example.com {
proxy /git/ http://localhost:3000 # Note: Trailing Slash after /git/
route /git/* {
uri strip_prefix /git
reverse_proxy localhost:3000
}
}
```

Or, for Caddy v1:

```
git.example.com {
proxy /git/ localhost:3000
}
```

Expand Down