fix RemoteIPHeader

This commit is contained in:
Jonas Leder 2021-09-26 01:59:37 +02:00
parent b2f81f1d8c
commit 61727fcbc9
No known key found for this signature in database
GPG key ID: CC3C488E27DFF5CA
2 changed files with 3 additions and 3 deletions

View file

@ -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/ .

View file

@ -1,3 +1,2 @@
ErrorDocument 404 /404.html
Options -Indexes
RemoteIPHeader X-Forwarded-For
Options -Indexes