From 61727fcbc9aa6a4e31ad2f7cd1f86379558525df Mon Sep 17 00:00:00 2001
From: Jonas Leder <jonas@jonasled.de>
Date: Sun, 26 Sep 2021 01:59:37 +0200
Subject: [PATCH] fix RemoteIPHeader

---
 Dockerfile       | 3 ++-
 public/.htaccess | 3 +--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index cc8702a..5f19b8f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -22,5 +22,6 @@ RUN cd API && composer install
 # |--------------------------------------------------------------------------
 FROM gitlab.jonasled.de/jonasled/apache-php-minimal:latest
 RUN apk update && \
-    apk add php8-mysqli php8-mbstring php8-curl curl --no-cache
+    apk add php8-mysqli php8-mbstring php8-curl curl --no-cache && \
+    echo "RemoteIPHeader X-Forwarded-For" > /etc/apache2/conf.d/remoteip.conf
 COPY --from=composer /build/ .
\ No newline at end of file
diff --git a/public/.htaccess b/public/.htaccess
index 15ccc91..dd8d1f9 100644
--- a/public/.htaccess
+++ b/public/.htaccess
@@ -1,3 +1,2 @@
 ErrorDocument 404 /404.html
-Options -Indexes
-RemoteIPHeader X-Forwarded-For
\ No newline at end of file
+Options -Indexes
\ No newline at end of file
-- 
GitLab