mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-07 22:27:42 +08:00
mastercontainer - limit access to php-fpm to localhost
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
faf1e4b2a9
commit
64d698359c
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,8 @@ RUN set -ex; \
|
|||
sed -i 's/^pm = dynamic/pm = ondemand/' /usr/local/etc/php-fpm.d/www.conf; \
|
||||
sed -i 's/^pm.max_children =.*/pm.max_children = 80/' /usr/local/etc/php-fpm.d/www.conf; \
|
||||
sed -i 's|access.log = /proc/self/fd/2|access.log = /proc/self/fd/1|' /usr/local/etc/php-fpm.d/docker.conf; \
|
||||
grep -q ';listen.allowed_clients' /usr/local/etc/php-fpm.d/www.conf; \
|
||||
sed -i 's|;listen.allowed_clients.*|listen.allowed_clients = 127.0.0.1,::1|' /usr/local/etc/php-fpm.d/www.conf; \
|
||||
\
|
||||
apk add --no-cache git; \
|
||||
wget https://getcomposer.org/installer -O - | php -- --install-dir=/usr/local/bin --filename=composer; \
|
||||
|
|
Loading…
Reference in a new issue