6
0
Fork 0

Make the RC_WP type accept altdomains to pass on to nginx.

This commit is contained in:
Joachim Desroches 2021-07-06 16:49:36 +02:00
parent cb32efde61
commit 46397cca9c
Signed by untrusted user who does not match committer: jdesroches
GPG Key ID: 6778C9C29C02D691
2 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,12 @@ fi
mysql_password="$(cat "${__object:?}/parameter/mysql-password")"
nginx_domain="$(cat "${__object:?}/parameter/nginx-domain")"
altdomains=
while read -r altdomain;
do
altdomains="--altdomain $altdomain $altdomains"
done < "${__object:?}/parameter/altdomains"
max_upload_size=100M
php_fpm_socket=/run/php-fpm7/php-fpm.sock
@ -43,7 +49,10 @@ require="__recycledcloud_mysql" __mysql_database wordpress \
# NGINX vhost for wordpress hosting.
__package nginx
# shellcheck disable=SC2086
require="__package/nginx" __recycledcloud_nginx "$nginx_domain" \
$altdomains \
--config - <<- EOF
root /var/www/wordpress;
index index.php;

View File

@ -0,0 +1 @@
altdomains