fix: Fix NGINX config template path in cert provisioning script (#26238)

The template script has been moved recently, but it hasn't been updated
here.
This commit is contained in:
Shrikant Sharat Kandula 2023-08-10 13:07:39 +05:30 committed by GitHub
parent a85fc7f5de
commit 1d30719e6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,10 +9,10 @@ init_ssl_cert() {
mkdir -p "$data_path/www"
echo "Re-generating nginx config template with domain"
bash "/opt/appsmith/templates/nginx-app-http.conf.template.sh" "$APPSMITH_CUSTOM_DOMAIN" >"/etc/nginx/conf.d/nginx_app.conf.template"
echo "Generating nginx configuration"
cat /etc/nginx/conf.d/nginx_app.conf.template | envsubst "$(printf '$%s,' $(env | grep -Eo '^APPSMITH_[A-Z0-9_]+'))" | sed -e 's|\${\(APPSMITH_[A-Z0-9_]*\)}||g' >/etc/nginx/sites-available/default
bash "/opt/appsmith/templates/nginx-app.conf.sh" "0" "$APPSMITH_CUSTOM_DOMAIN" \
| envsubst "$(printf '$%s,' $(env | grep -Eo '^APPSMITH_[A-Z0-9_]+'))" \
| sed -e 's|\${\(APPSMITH_[A-Z0-9_]*\)}||g' \
> /etc/nginx/sites-available/default
echo "Start Nginx to verify certificate"
nginx