mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
Merge branch 'master' into PHRAS-3164_lightbox-download_link
This commit is contained in:
5
.env
5
.env
@@ -13,6 +13,8 @@ RABBITMQ_MANAGEMENT_PORT=10811
|
|||||||
MYSQL_ROOT_PASSWORD=root
|
MYSQL_ROOT_PASSWORD=root
|
||||||
SERVER_NAME=phraseanet-docker
|
SERVER_NAME=phraseanet-docker
|
||||||
|
|
||||||
|
# --------------- GATEWAY TIMEOUT -----------------------
|
||||||
|
GATEWAY_SEND_TIMEOUT=120
|
||||||
|
|
||||||
# --------------- PHP CONFIGURATION --------------------
|
# --------------- PHP CONFIGURATION --------------------
|
||||||
|
|
||||||
@@ -21,6 +23,9 @@ MAX_BODY_SIZE=2G
|
|||||||
# Max input var
|
# Max input var
|
||||||
MAX_INPUT_VARS=12000
|
MAX_INPUT_VARS=12000
|
||||||
|
|
||||||
|
MAX_EXECUTION_TIME=120
|
||||||
|
MAX_INPUT_TIME=60
|
||||||
|
|
||||||
# Enable opcache ? (0/1)
|
# Enable opcache ? (0/1)
|
||||||
OPCACHE_ENABLED=1
|
OPCACHE_ENABLED=1
|
||||||
# session cache limiter (off/on)
|
# session cache limiter (off/on)
|
||||||
|
@@ -19,6 +19,7 @@ services:
|
|||||||
- phraseanet
|
- phraseanet
|
||||||
environment:
|
environment:
|
||||||
- MAX_BODY_SIZE
|
- MAX_BODY_SIZE
|
||||||
|
- GATEWAY_SEND_TIMEOUT
|
||||||
ports:
|
ports:
|
||||||
- ${PHRASEANET_APP_PORT}:80
|
- ${PHRASEANET_APP_PORT}:80
|
||||||
|
|
||||||
@@ -40,6 +41,8 @@ services:
|
|||||||
- PHRASEANET_PROJECT_NAME
|
- PHRASEANET_PROJECT_NAME
|
||||||
- MAX_BODY_SIZE
|
- MAX_BODY_SIZE
|
||||||
- MAX_INPUT_VARS
|
- MAX_INPUT_VARS
|
||||||
|
- MAX_EXECUTION_TIME
|
||||||
|
- MAX_INPUT_TIME
|
||||||
- OPCACHE_ENABLED
|
- OPCACHE_ENABLED
|
||||||
- SESSION_CACHE_LIMITER
|
- SESSION_CACHE_LIMITER
|
||||||
- PHP_LOG_LEVEL
|
- PHP_LOG_LEVEL
|
||||||
|
@@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
cat /nginx.conf.sample | sed "s/\$MAX_BODY_SIZE/$MAX_BODY_SIZE/g" > /etc/nginx/conf.d/default.conf
|
cat /nginx.conf.sample | sed "s/\$MAX_BODY_SIZE/$MAX_BODY_SIZE/g" | sed "s/\$GATEWAY_SEND_TIMEOUT/$GATEWAY_SEND_TIMEOUT/g" > /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
send_timeout $GATEWAY_SEND_TIMEOUT;
|
||||||
upstream backend {
|
upstream backend {
|
||||||
server phraseanet:9000;
|
server phraseanet:9000;
|
||||||
}
|
}
|
||||||
|
@@ -380,7 +380,7 @@ expose_php = On
|
|||||||
; Maximum execution time of each script, in seconds
|
; Maximum execution time of each script, in seconds
|
||||||
; http://php.net/max-execution-time
|
; http://php.net/max-execution-time
|
||||||
; Note: This directive is hardcoded to 0 for the CLI SAPI
|
; 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
|
; 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
|
; 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)
|
; Development Value: 60 (60 seconds)
|
||||||
; Production Value: 60 (60 seconds)
|
; Production Value: 60 (60 seconds)
|
||||||
; http://php.net/max-input-time
|
; http://php.net/max-input-time
|
||||||
max_input_time = 60
|
max_input_time = $MAX_INPUT_TIME
|
||||||
|
|
||||||
; Maximum input variable nesting level
|
; Maximum input variable nesting level
|
||||||
; http://php.net/max-input-nesting-level
|
; http://php.net/max-input-nesting-level
|
||||||
|
Reference in New Issue
Block a user