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:
parent
93e2020d1f
commit
6936b58731
1 changed files with 2 additions and 1 deletions
|
|
@ -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; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue