2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2025-12-07 22:07:09 +01:00

Add a test to add the client remote IP logging configuration only to FPM image variants

This commit is contained in:
m33 2025-02-08 19:55:04 +01:00
commit 6936b58731

View file

@ -150,7 +150,8 @@ RUN set -ex; \
} > /usr/local/etc/php/conf.d/friendica.ini; \
ln -s /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini; \
\
echo 'access.format ="%{HTTP_X_FORWARDED_FOR}e - %u %t \"%m %r\" %s"' >> /usr/local/etc/php-fpm.d/docker.conf; \
# Only append this client IP log settings to FPM image variants
if [ "%%VARIANT%%" != "apache" ]; then echo 'access.format = "%{HTTP_X_FORWARDED_FOR}e - %u %t \"%m %r\" %s"' 1>> /usr/local/etc/php-fpm.d/docker.conf; fi; \
\
mkdir /var/www/data; \
chown -R www-data:root /var/www; \