trust proxy

This commit is contained in:
2026-02-12 18:11:52 +01:00
parent 25bf0f8202
commit 3ef05f5ea0
2 changed files with 3 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ services:
- ./wp:/var/www/html
- ./config/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./config/opcache.ini:/usr/local/etc/php/conf.d/opcache.ini
- ./config/remoteip.conf:/etc/apache2/conf-enabled/remoteip.conf:ro
- ./static:/export
ports:
- ${WP_PORT:-8080}:80

2
config/remoteip.conf Normal file
View File

@@ -0,0 +1,2 @@
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy 192.168.5.41