mirror of
https://github.com/librenms/docker.git
synced 2026-01-23 02:14:48 +00:00
Add MAX_INPUT_VARS env var (#271)
This commit is contained in:
parent
c95e0d57b6
commit
675c93441d
6 changed files with 7 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
* `PUID`: LibreNMS user id (default `1000`)
|
||||
* `PGID`: LibreNMS group id (default `1000`)
|
||||
* `MEMORY_LIMIT`: PHP memory limit (default `256M`)
|
||||
* `MAX_INPUT_VARS`: PHP max input vars (default `1000`)
|
||||
* `UPLOAD_MAX_SIZE`: Upload max size (default `16M`)
|
||||
* `CLEAR_ENV`: Clear environment in FPM workers (default `yes`)
|
||||
* `OPCACHE_MEM_SIZE`: PHP OpCache memory consumption (default `128`)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
MEMORY_LIMIT=256M
|
||||
MAX_INPUT_VARS=1000
|
||||
UPLOAD_MAX_SIZE=16M
|
||||
OPCACHE_MEM_SIZE=128
|
||||
REAL_IP_FROM=0.0.0.0/32
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ x-env-global: &env-global
|
|||
|
||||
x-envlibrenms: &envlibrenms
|
||||
MEMORY_LIMIT: "256M"
|
||||
MAX_INPUT_VARS: "1000"
|
||||
UPLOAD_MAX_SIZE: "16M"
|
||||
OPCACHE_MEM_SIZE: "128"
|
||||
REAL_IP_FROM: "0.0.0.0/32"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
MEMORY_LIMIT=256M
|
||||
MAX_INPUT_VARS=1000
|
||||
UPLOAD_MAX_SIZE=16M
|
||||
OPCACHE_MEM_SIZE=128
|
||||
REAL_IP_FROM=0.0.0.0/32
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
MEMORY_LIMIT=256M
|
||||
MAX_INPUT_VARS=1000
|
||||
UPLOAD_MAX_SIZE=16M
|
||||
OPCACHE_MEM_SIZE=128
|
||||
REAL_IP_FROM=0.0.0.0/32
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ LISTEN_IPV6=${LISTEN_IPV6:-true}
|
|||
REAL_IP_FROM=${REAL_IP_FROM:-"0.0.0.0/32"}
|
||||
REAL_IP_HEADER=${REAL_IP_HEADER:-"X-Forwarded-For"}
|
||||
LOG_IP_VAR=${LOG_IP_VAR:-remote_addr}
|
||||
MAX_INPUT_VARS=${MAX_INPUT_VARS:-1000}
|
||||
|
||||
MEMCACHED_PORT=${MEMCACHED_PORT:-11211}
|
||||
|
||||
|
|
@ -58,6 +59,7 @@ sed -e "s/@MEMORY_LIMIT@/$MEMORY_LIMIT/g" \
|
|||
echo "Setting PHP INI configuration..."
|
||||
sed -i "s|memory_limit.*|memory_limit = ${MEMORY_LIMIT}|g" /etc/php7/php.ini
|
||||
sed -i "s|;date\.timezone.*|date\.timezone = ${TZ}|g" /etc/php7/php.ini
|
||||
sed -i "s|;max_input_vars.*|max_input_vars = ${MAX_INPUT_VARS}|g" /etc/php7/php.ini
|
||||
|
||||
# OpCache
|
||||
echo "Setting OpCache configuration..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue