We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2313df8 + e40be2f commit 12687f1Copy full SHA for 12687f1
spaceonfire/bin/entrypoint.sh
@@ -40,10 +40,13 @@ if [[ -z "$NGINX_READ_TIMEOUT" ]] && [[ "$APPLICATION_ENV" != "production" ]]; t
40
fi
41
42
if [[ ! -z "$NGINX_READ_TIMEOUT" ]]; then
43
- {
44
- echo ""
45
- echo "fastcgi_read_timeout $NGINX_READ_TIMEOUT;"
46
- } >> /etc/nginx/fastcgi_params
+ FastCgiParamsFile="/etc/nginx/fastcgi_params"
+ if ! grep -q fastcgi_read_timeout "$FastCgiParamsFile"; then
+ {
+ echo ""
47
+ echo "fastcgi_read_timeout $NGINX_READ_TIMEOUT;"
48
+ } >> $FastCgiParamsFile
49
+ fi
50
51
52
# Prevent config files from being filled to infinity by force of stop and restart the container
0 commit comments