set gateway fpm timeout

This commit is contained in:
nmaillat
2020-07-06 20:13:27 +02:00
parent 7eb95a97c5
commit 72d2bc028d
3 changed files with 4 additions and 0 deletions

2
.env
View File

@@ -13,6 +13,8 @@ RABBITMQ_MANAGEMENT_PORT=10811
MYSQL_ROOT_PASSWORD=root
SERVER_NAME=phraseanet-docker
# --------------- GATEWAY TIMEOUT -----------------------
$GATEWAY_SEND_TIMEOUT=120
# --------------- PHP CONFIGURATION --------------------

View File

@@ -19,6 +19,7 @@ services:
- phraseanet
environment:
- MAX_BODY_SIZE
- GATEWAY_SEND_TIMEOUT
ports:
- ${PHRASEANET_APP_PORT}:80

View File

@@ -3,5 +3,6 @@
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/\$GATEWAY_SEND_TIMEOUT/$GATEWAY_SEND_TIMEOUT/g" > /etc/nginx/conf.d/default.conf
exec "$@"