diff options
author | TLZ <roesch.eric@protonmail.com> | 2020-05-31 04:16:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 22:16:32 -0400 |
commit | 2d1ade34154794e7468436e758706a8e7c69a7ed (patch) | |
tree | 60013383b29dae9533c45f9a1ef746d321f1532b | |
parent | 9d652002c63d03d44083c4410881a457a9390e2f (diff) | |
download | gitea-2d1ade34154794e7468436e758706a8e7c69a7ed.tar.gz gitea-2d1ade34154794e7468436e758706a8e7c69a7ed.zip |
Update Caddy reverse-proxy instructions (#11655)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
-rw-r--r-- | docs/content/doc/usage/reverse-proxies.en-us.md | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/docs/content/doc/usage/reverse-proxies.en-us.md b/docs/content/doc/usage/reverse-proxies.en-us.md index 704b02e40a..c31576ecb8 100644 --- a/docs/content/doc/usage/reverse-proxies.en-us.md +++ b/docs/content/doc/usage/reverse-proxies.en-us.md @@ -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 } ``` @@ -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 } ``` |