Skip to content

Commit da0b27d

Browse files
committed
Updated nginx configuration
1 parent 8363b83 commit da0b27d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.docker/templates/default.conf.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ server {
7777

7878
fastcgi_intercept_errors on;
7979
fastcgi_pass ${NGINX_FPM_SERVICE};
80+
81+
# @TODO Can we fall back to the default value here if NGINX_FASTCGI_READ_TIMEOUT is not defined?
82+
# Cf. https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_read_timeout
83+
fastcgi_read_timeout ${NGINX_FASTCGI_READ_TIMEOUT};
8084
}
8185

8286
# Enforce clean URLs

docker-compose.override.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@ services:
88
volumes:
99
- .:/app:delegated
1010
working_dir: /app
11+
12+
phpfpm:
13+
environment:
14+
- PHP_MAX_EXECUTION_TIME=300
15+
- PHP_MEMORY_LIMIT=512M
16+
17+
nginx:
18+
environment:
19+
# Match PHP_MAX_EXECUTION_TIME above
20+
- NGINX_FASTCGI_READ_TIMEOUT=300

docker-compose.server.override.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
phpfpm:
3+
environment:
4+
- PHP_MAX_EXECUTION_TIME=300
5+
- PHP_MEMORY_LIMIT=512M
6+
7+
nginx:
8+
environment:
9+
# Match PHP_MAX_EXECUTION_TIME above
10+
- NGINX_FASTCGI_READ_TIMEOUT=300

0 commit comments

Comments
 (0)