set php timeout

This commit is contained in:
nmaillat
2020-07-06 19:03:54 +02:00
parent 3f47636094
commit 7eb95a97c5
3 changed files with 7 additions and 2 deletions

3
.env
View File

@@ -21,6 +21,9 @@ MAX_BODY_SIZE=2G
# Max input var
MAX_INPUT_VARS=12000
MAX_EXECUTION_TIME=600
MAX_INPUT_TIME=60
# Enable opcache ? (0/1)
OPCACHE_ENABLED=1
# session cache limiter (off/on)

View File

@@ -40,6 +40,8 @@ services:
- PHRASEANET_PROJECT_NAME
- MAX_BODY_SIZE
- MAX_INPUT_VARS
- MAX_EXECUTION_TIME
- MAX_INPUT_TIME
- OPCACHE_ENABLED
- SESSION_CACHE_LIMITER
- PHP_LOG_LEVEL

View File

@@ -380,7 +380,7 @@ expose_php = On
; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 9999
max_execution_time = $MAX_EXECUTION_TIME
; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
@@ -390,7 +390,7 @@ max_execution_time = 9999
; Development Value: 60 (60 seconds)
; Production Value: 60 (60 seconds)
; http://php.net/max-input-time
max_input_time = 60
max_input_time = $MAX_INPUT_TIME
; Maximum input variable nesting level
; http://php.net/max-input-nesting-level