Make fpm status and fpm ping be less keywordy
This commit is contained in:
parent
c10bd3831a
commit
cea5cdfae9
2 changed files with 4 additions and 4 deletions
|
|
@ -130,8 +130,8 @@ RUN apt-get -qq update && \
|
||||||
sed -i "s/{{PHP}}/$PHP_VERSION/g" /etc/nginx/sites-enabled/default && \
|
sed -i "s/{{PHP}}/$PHP_VERSION/g" /etc/nginx/sites-enabled/default && \
|
||||||
sed -i "s/{{PHP}}/$PHP_VERSION/g" /etc/service/php-fpm/run && \
|
sed -i "s/{{PHP}}/$PHP_VERSION/g" /etc/service/php-fpm/run && \
|
||||||
# Enable PHP-FPM status & PHP-FPM ping
|
# Enable PHP-FPM status & PHP-FPM ping
|
||||||
sed -i -e "s|;pm.status_path =.*|pm.status_path = /status|g" /etc/php/*/fpm/pool.d/www.conf && \
|
sed -i -e "s|;pm.status_path =.*|pm.status_path = /fpm-status|g" /etc/php/*/fpm/pool.d/www.conf && \
|
||||||
sed -i -e "s|;ping.path =.*|ping.path = /ping|g" /etc/php/*/fpm/pool.d/www.conf && \
|
sed -i -e "s|;ping.path =.*|ping.path = /fpm-ping|g" /etc/php/*/fpm/pool.d/www.conf && \
|
||||||
# Using environment variables in config files works, it would seem. Neat!
|
# Using environment variables in config files works, it would seem. Neat!
|
||||||
sed -i -e "s|pm.max_children = 5|pm.max_children = \${PHPFPM_MAX_CHILDREN}|g" /etc/php/*/fpm/pool.d/www.conf && \
|
sed -i -e "s|pm.max_children = 5|pm.max_children = \${PHPFPM_MAX_CHILDREN}|g" /etc/php/*/fpm/pool.d/www.conf && \
|
||||||
# Disable daemonising in nginx
|
# Disable daemonising in nginx
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Pass thru status and ping requests to PHP-FPM
|
# Pass thru status and ping requests to PHP-FPM
|
||||||
location = /status {
|
location = /fpm-status {
|
||||||
access_log off;
|
access_log off;
|
||||||
allow 127.0.0.1;
|
allow 127.0.0.1;
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
|
|
@ -30,7 +30,7 @@ server {
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
location = /ping {
|
location = /fpm-ping {
|
||||||
access_log off;
|
access_log off;
|
||||||
allow 127.0.0.1;
|
allow 127.0.0.1;
|
||||||
allow 10.0.0.0/8;
|
allow 10.0.0.0/8;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue