From 3ef05f5ea0ac1b6ce26260d192d5679c8cec1a1e Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 12 Feb 2026 18:11:52 +0100 Subject: [PATCH] trust proxy --- compose.yml | 1 + config/remoteip.conf | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 config/remoteip.conf diff --git a/compose.yml b/compose.yml index 5942ed2..27048f5 100644 --- a/compose.yml +++ b/compose.yml @@ -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 diff --git a/config/remoteip.conf b/config/remoteip.conf new file mode 100644 index 0000000..5e1e5f5 --- /dev/null +++ b/config/remoteip.conf @@ -0,0 +1,2 @@ +RemoteIPHeader X-Forwarded-For +RemoteIPTrustedProxy 192.168.5.41