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