PDF-accessibility-saas/docker-entrypoint-web.sh

15 lines
448 B
Bash

#!/bin/sh
set -e
# Allow PHP-FPM to inherit environment variables (needed for getenv() in PHP)
# By default PHP-FPM clears the environment; this disables that behavior
echo 'clear_env = no' >> /usr/local/etc/php-fpm.d/www.conf
# 15-minute timeout for Cloud Run PDF processing
echo 'request_terminate_timeout = 900' >> /usr/local/etc/php-fpm.d/www.conf
# Start PHP-FPM in background
php-fpm -D
# Start Nginx in foreground
nginx -g 'daemon off;'