Chang's blog
learn and share...
Proxy Gitea as Caddy Subpath

Using Caddy with a Sub-path as a reverse proxy.

Gitea and Caddy are on different server.

Caddyfile (on caddy server)

example.com {
  proxy /git http://x.x.x.x:3000 {
    without /git
  }
}

custom/conf/app.ini (on gitea server)

[server]
ROOT_URL = http://example.com/git/

Reference

  1. https://docs.gitea.io/en-us/reverse-proxies/

Last modified on 2020-02-22