@glicogh/healthcare-cdk 0.1.67 → 0.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,11 +12,11 @@ sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
|
12
12
|
|
|
13
13
|
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
14
14
|
if [[ ! -f "/etc/letsencrypt/live/$api_gateway_domain_name/fullchain.pem" ]]; then
|
|
15
|
-
sudo certbot certonly --
|
|
15
|
+
sudo certbot certonly --nginx -d $api_gateway_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
|
|
16
16
|
fi
|
|
17
17
|
|
|
18
18
|
# register SSL renewal cron
|
|
19
|
-
certbot_cron_command="/usr/bin/certbot renew --
|
|
19
|
+
certbot_cron_command="/usr/bin/certbot renew --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
20
20
|
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
21
21
|
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
22
22
|
|
|
@@ -12,11 +12,11 @@ sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
|
12
12
|
|
|
13
13
|
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
14
14
|
if [[ ! -f "/etc/letsencrypt/live/$portal_domain_name/fullchain.pem" ]]; then
|
|
15
|
-
sudo certbot certonly --
|
|
15
|
+
sudo certbot certonly --nginx -d $portal_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
|
|
16
16
|
fi
|
|
17
17
|
|
|
18
18
|
# register SSL renewal cron
|
|
19
|
-
certbot_cron_command="/usr/bin/certbot renew --
|
|
19
|
+
certbot_cron_command="/usr/bin/certbot renew --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
20
20
|
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
21
21
|
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
22
22
|
|
package/package.json
CHANGED
|
@@ -12,11 +12,11 @@ sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
|
12
12
|
|
|
13
13
|
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
14
14
|
if [[ ! -f "/etc/letsencrypt/live/$api_gateway_domain_name/fullchain.pem" ]]; then
|
|
15
|
-
sudo certbot certonly --
|
|
15
|
+
sudo certbot certonly --nginx -d $api_gateway_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
|
|
16
16
|
fi
|
|
17
17
|
|
|
18
18
|
# register SSL renewal cron
|
|
19
|
-
certbot_cron_command="/usr/bin/certbot renew --
|
|
19
|
+
certbot_cron_command="/usr/bin/certbot renew --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
20
20
|
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
21
21
|
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
22
22
|
|
|
@@ -12,11 +12,11 @@ sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
|
12
12
|
|
|
13
13
|
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
14
14
|
if [[ ! -f "/etc/letsencrypt/live/$portal_domain_name/fullchain.pem" ]]; then
|
|
15
|
-
sudo certbot certonly --
|
|
15
|
+
sudo certbot certonly --nginx -d $portal_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
|
|
16
16
|
fi
|
|
17
17
|
|
|
18
18
|
# register SSL renewal cron
|
|
19
|
-
certbot_cron_command="/usr/bin/certbot renew --
|
|
19
|
+
certbot_cron_command="/usr/bin/certbot renew --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
20
20
|
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
21
21
|
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
22
22
|
|