#!/bin/bash set -o nounset NGINX_SSL_CMNT="$1" CUSTOM_DOMAIN="$2" # By default, container will use the auto-generate certificate by Let's Encrypt SSL_CERT_PATH="/etc/letsencrypt/live/$CUSTOM_DOMAIN/fullchain.pem" SSL_KEY_PATH="/etc/letsencrypt/live/$CUSTOM_DOMAIN/privkey.pem" # In case of existing custom certificate, container will use them to configure SSL if [[ -e "/appsmith-stacks/ssl/fullchain.pem" ]] && [[ -e "/appsmith-stacks/ssl/privkey.pem" ]]; then SSL_CERT_PATH="/appsmith-stacks/ssl/fullchain.pem" SSL_KEY_PATH="/appsmith-stacks/ssl/privkey.pem" fi cat <