Update run.sh

This commit is contained in:
Olivier DEBAUCHE 2021-06-17 08:11:51 +02:00 committed by GitHub
parent da8e8ca6a7
commit d34e186248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
run.sh
View File

@ -175,11 +175,12 @@ if [ "$1" = "run" ]; then
echo "export APACHE_ARGUMENTS='-D ALLOW_CORS'" >> /etc/apache2/envvars echo "export APACHE_ARGUMENTS='-D ALLOW_CORS'" >> /etc/apache2/envvars
fi fi
# Initialize PostgreSQL and Apache # Initialize Varnish, PostgreSQL and Apache
createPostgresConfig createPostgresConfig
service postgresql start service postgresql start
service apache2 restart service apache2 restart
setPostgresPassword setPostgresPassword
varnishd -F -f /etc/varnish/default.vcl -a http=:80,HTTP -a proxy=:8443,PROXY -p feature=+http2 -s malloc,3g
# Configure renderd threads # Configure renderd threads
sed -i -E "s/num_threads=[0-9]+/num_threads=${THREADS:-4}/g" /usr/local/etc/renderd.conf sed -i -E "s/num_threads=[0-9]+/num_threads=${THREADS:-4}/g" /usr/local/etc/renderd.conf