diff --git a/Dockerfile b/Dockerfile index cc8702a3a3ecc2957442deb4b66a7a50645ae77f..5f19b8f026acf88a1a8e7b9c480582f64a399f65 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 15ccc91dee4e5f0e44272e9532bea9d097bf845c..dd8d1f9e85d0b60d825f1b8004c538947ad8dea0 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