PromucFlow_constructor/deploy/aws/configure-ssl.sh
Manish 391347224d
adding base-install.sh and boot.sh (#92)
Adding the following files in order to create the AWS AMI 
* boot.sh
* base-install.sh
* configure-ssl.sh file to run to modify app.conf file of nginx and to run init-letsencrypt.sh which generate SSL certificate.

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: Arpit Mohan <arpit@appsmith.com>
2020-07-21 16:54:08 +05:30

20 lines
481 B
Bash
Executable File

#!/bin/bash
set -o errexit
read -p 'Enter your domain / subdomain name (example.com / app.example.com): ' custom_domain
NGINX_SSL_CMNT=""
install_dir="/home/ubuntu/appsmith"
TEMPLATE_PATH="$install_dir/script/template"
. $TEMPLATE_PATH/nginx_app.conf.sh
. $TEMPLATE_PATH/init-letsencrypt.sh.sh
chmod 0755 init-letsencrypt.sh
mv -f app.conf $install_dir/data/nginx/app.conf
mv -f init-letsencrypt.sh $install_dir/init-letsencrypt.sh
cd $install_dir
sudo ./init-letsencrypt.sh