]> source.dussan.org Git - gitea.git/commit
Add reverse proxy configuration support for remote IP address (#14959)
authorLauris BH <lauris@nix.lv>
Mon, 15 Mar 2021 22:27:28 +0000 (00:27 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Mar 2021 22:27:28 +0000 (00:27 +0200)
commit044cd4d016196e8c7091eee90b7e6f230bba142f
tree35f060380813f99588966339c5ddf796a8b8c451
parent6e423d5573c20b78d6e21cb044e8f4d5de5b288a
Add reverse proxy configuration support for remote IP address (#14959)

* Add reverse proxy configuration support for remote IP address validation

* Trust all IP addresses in containerized environments by default

* Use single option to specify networks and proxy IP addresses. By default trust all loopback IPs

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
20 files changed:
custom/conf/app.example.ini
docker/root/etc/templates/app.ini
docker/rootless/etc/templates/app.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md
go.mod
go.sum
modules/setting/setting.go
routers/routes/web.go
vendor/github.com/chi-middleware/proxy/.drone.yml [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/.gitignore [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/.golangci.yml [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/.revive.toml [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/LICENSE [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/Makefile [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/README.md [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/go.mod [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/go.sum [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/middleware.go [new file with mode: 0644]
vendor/github.com/chi-middleware/proxy/options.go [new file with mode: 0644]
vendor/modules.txt