Skip to content

Commit a36ad6b

Browse files
committed
Trust all IP addresses in containerized environments by default
1 parent a5db11a commit a36ad6b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docker/root/etc/templates/app.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ ROOT_PATH = /data/gitea/log
5353
[security]
5454
INSTALL_LOCK = $INSTALL_LOCK
5555
SECRET_KEY = $SECRET_KEY
56+
REVERSE_PROXY_LIMIT = 1
57+
REVERSE_PROXY_TRUSTED_PROXIES = *
5658

5759
[service]
5860
DISABLE_REGISTRATION = $DISABLE_REGISTRATION

docker/rootless/etc/templates/app.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ ROOT_PATH = $GITEA_WORK_DIR/data/log
4949
[security]
5050
INSTALL_LOCK = $INSTALL_LOCK
5151
SECRET_KEY = $SECRET_KEY
52+
REVERSE_PROXY_LIMIT = 1
53+
REVERSE_PROXY_TRUSTED_PROXIES = *
5254

5355
[service]
5456
DISABLE_REGISTRATION = $DISABLE_REGISTRATION

0 commit comments

Comments
 (0)