@glicogh/healthcare-cdk 0.1.64 → 0.1.66
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.
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
# install certbot
|
|
3
|
+
sudo snap refresh core
|
|
4
|
+
sudo apt remove certbot
|
|
5
|
+
sudo snap install --classic certbot
|
|
6
|
+
sudo ln -s /snap/bin/certbot /usr/bin/certbot
|
|
7
|
+
|
|
8
|
+
# sync SSL certificates from S3 bucket to local (if they exist)
|
|
9
|
+
aws s3 cp s3://$public_bucket_name/ssl/ /etc/letsencrypt/live --recursive
|
|
10
|
+
sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
11
|
+
|
|
12
|
+
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
13
|
+
if [[ ! -f "/etc/letsencrypt/live/$api_gateway_domain_name/fullchain.pem" ]]; then
|
|
14
|
+
sudo certbot certonly --standalone -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/"
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
# register SSL renewal cron
|
|
18
|
+
certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
19
|
+
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
20
|
+
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
21
|
+
|
|
1
22
|
# install nginx
|
|
2
23
|
sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -yq
|
|
3
24
|
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
|
|
@@ -33,23 +54,3 @@ sudo systemctl restart dnsmasq
|
|
|
33
54
|
|
|
34
55
|
# start nginx server
|
|
35
56
|
sudo systemctl restart nginx
|
|
36
|
-
|
|
37
|
-
# install certbot
|
|
38
|
-
sudo snap refresh core
|
|
39
|
-
sudo apt remove certbot
|
|
40
|
-
sudo snap install --classic certbot
|
|
41
|
-
sudo ln -s /snap/bin/certbot /usr/bin/certbot
|
|
42
|
-
|
|
43
|
-
# sync SSL certificates from S3 bucket to local (if they exist)
|
|
44
|
-
aws s3 cp s3://$public_bucket_name/ssl/ /etc/letsencrypt/live --recursive
|
|
45
|
-
sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
46
|
-
|
|
47
|
-
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
48
|
-
if [[ ! -f "/etc/letsencrypt/live/$api_gateway_domain_name/fullchain.pem" ]]; then
|
|
49
|
-
sudo certbot certonly --standalone -d $api_gateway_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --pre-hook="sudo systemctl stop nginx" --post-hook="sudo systemctl start nginx" --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
|
|
50
|
-
fi
|
|
51
|
-
|
|
52
|
-
# register SSL renewal cron
|
|
53
|
-
certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
54
|
-
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
55
|
-
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
# install certbot
|
|
3
|
+
sudo snap refresh core
|
|
4
|
+
sudo apt remove certbot
|
|
5
|
+
sudo snap install --classic certbot
|
|
6
|
+
sudo ln -s /snap/bin/certbot /usr/bin/certbot
|
|
7
|
+
|
|
8
|
+
# sync SSL certificates from S3 bucket to local (if they exist)
|
|
9
|
+
aws s3 cp s3://$public_bucket_name/ssl/ /etc/letsencrypt/live --recursive
|
|
10
|
+
sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
11
|
+
|
|
12
|
+
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
13
|
+
if [[ ! -f "/etc/letsencrypt/live/$portal_domain_name/fullchain.pem" ]]; then
|
|
14
|
+
sudo certbot certonly --standalone -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/"
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
# register SSL renewal cron
|
|
18
|
+
certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
19
|
+
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
20
|
+
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
21
|
+
|
|
1
22
|
# install nginx
|
|
2
23
|
sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -yq
|
|
3
24
|
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
|
|
@@ -32,23 +53,3 @@ sudo NODE_OPTIONS="--max-old-space-size=2048 NUXT_TELEMETRY_DISABLED=1" npm run
|
|
|
32
53
|
|
|
33
54
|
# start nginx server
|
|
34
55
|
sudo systemctl restart nginx
|
|
35
|
-
|
|
36
|
-
# install certbot
|
|
37
|
-
sudo snap refresh core
|
|
38
|
-
sudo apt remove certbot
|
|
39
|
-
sudo snap install --classic certbot
|
|
40
|
-
sudo ln -s /snap/bin/certbot /usr/bin/certbot
|
|
41
|
-
|
|
42
|
-
# sync SSL certificates from S3 bucket to local (if they exist)
|
|
43
|
-
aws s3 cp s3://$public_bucket_name/ssl/ /etc/letsencrypt/live --recursive
|
|
44
|
-
sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
45
|
-
|
|
46
|
-
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
47
|
-
if [[ ! -f "/etc/letsencrypt/live/$portal_domain_name/fullchain.pem" ]]; then
|
|
48
|
-
sudo certbot certonly --standalone -d $portal_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --pre-hook="sudo systemctl stop nginx" --post-hook="sudo systemctl start nginx" --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
# register SSL renewal cron
|
|
52
|
-
certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
53
|
-
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
54
|
-
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
package/package.json
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
# install certbot
|
|
3
|
+
sudo snap refresh core
|
|
4
|
+
sudo apt remove certbot
|
|
5
|
+
sudo snap install --classic certbot
|
|
6
|
+
sudo ln -s /snap/bin/certbot /usr/bin/certbot
|
|
7
|
+
|
|
8
|
+
# sync SSL certificates from S3 bucket to local (if they exist)
|
|
9
|
+
aws s3 cp s3://$public_bucket_name/ssl/ /etc/letsencrypt/live --recursive
|
|
10
|
+
sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
11
|
+
|
|
12
|
+
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
13
|
+
if [[ ! -f "/etc/letsencrypt/live/$api_gateway_domain_name/fullchain.pem" ]]; then
|
|
14
|
+
sudo certbot certonly --standalone -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/"
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
# register SSL renewal cron
|
|
18
|
+
certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
19
|
+
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
20
|
+
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
21
|
+
|
|
1
22
|
# install nginx
|
|
2
23
|
sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -yq
|
|
3
24
|
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
|
|
@@ -33,23 +54,3 @@ sudo systemctl restart dnsmasq
|
|
|
33
54
|
|
|
34
55
|
# start nginx server
|
|
35
56
|
sudo systemctl restart nginx
|
|
36
|
-
|
|
37
|
-
# install certbot
|
|
38
|
-
sudo snap refresh core
|
|
39
|
-
sudo apt remove certbot
|
|
40
|
-
sudo snap install --classic certbot
|
|
41
|
-
sudo ln -s /snap/bin/certbot /usr/bin/certbot
|
|
42
|
-
|
|
43
|
-
# sync SSL certificates from S3 bucket to local (if they exist)
|
|
44
|
-
aws s3 cp s3://$public_bucket_name/ssl/ /etc/letsencrypt/live --recursive
|
|
45
|
-
sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
46
|
-
|
|
47
|
-
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
48
|
-
if [[ ! -f "/etc/letsencrypt/live/$api_gateway_domain_name/fullchain.pem" ]]; then
|
|
49
|
-
sudo certbot certonly --standalone -d $api_gateway_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --pre-hook="sudo systemctl stop nginx" --post-hook="sudo systemctl start nginx" --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
|
|
50
|
-
fi
|
|
51
|
-
|
|
52
|
-
# register SSL renewal cron
|
|
53
|
-
certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
54
|
-
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
55
|
-
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
# install certbot
|
|
3
|
+
sudo snap refresh core
|
|
4
|
+
sudo apt remove certbot
|
|
5
|
+
sudo snap install --classic certbot
|
|
6
|
+
sudo ln -s /snap/bin/certbot /usr/bin/certbot
|
|
7
|
+
|
|
8
|
+
# sync SSL certificates from S3 bucket to local (if they exist)
|
|
9
|
+
aws s3 cp s3://$public_bucket_name/ssl/ /etc/letsencrypt/live --recursive
|
|
10
|
+
sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
11
|
+
|
|
12
|
+
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
13
|
+
if [[ ! -f "/etc/letsencrypt/live/$portal_domain_name/fullchain.pem" ]]; then
|
|
14
|
+
sudo certbot certonly --standalone -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/"
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
# register SSL renewal cron
|
|
18
|
+
certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
19
|
+
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
20
|
+
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|
|
21
|
+
|
|
1
22
|
# install nginx
|
|
2
23
|
sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring -yq
|
|
3
24
|
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null
|
|
@@ -32,23 +53,3 @@ sudo NODE_OPTIONS="--max-old-space-size=2048 NUXT_TELEMETRY_DISABLED=1" npm run
|
|
|
32
53
|
|
|
33
54
|
# start nginx server
|
|
34
55
|
sudo systemctl restart nginx
|
|
35
|
-
|
|
36
|
-
# install certbot
|
|
37
|
-
sudo snap refresh core
|
|
38
|
-
sudo apt remove certbot
|
|
39
|
-
sudo snap install --classic certbot
|
|
40
|
-
sudo ln -s /snap/bin/certbot /usr/bin/certbot
|
|
41
|
-
|
|
42
|
-
# sync SSL certificates from S3 bucket to local (if they exist)
|
|
43
|
-
aws s3 cp s3://$public_bucket_name/ssl/ /etc/letsencrypt/live --recursive
|
|
44
|
-
sudo chown -R ubuntu:ubuntu /etc/letsencrypt/live
|
|
45
|
-
|
|
46
|
-
# obtain SSL certificate (if it doesn't exist) and sync to S3 bucket
|
|
47
|
-
if [[ ! -f "/etc/letsencrypt/live/$portal_domain_name/fullchain.pem" ]]; then
|
|
48
|
-
sudo certbot certonly --standalone -d $portal_domain_name --agree-tos --non-interactive -m mistabiggx@gmail.com --no-eff-email --quiet --pre-hook="sudo systemctl stop nginx" --post-hook="sudo systemctl start nginx" --deploy-hook "aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/"
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
# register SSL renewal cron
|
|
52
|
-
certbot_cron_command="/usr/bin/certbot renew --pre-hook=\"sudo systemctl stop nginx\" --post-hook=\"sudo systemctl start nginx\" --deploy-hook \"aws s3 sync /etc/letsencrypt/live s3://$public_bucket_name/ssl/\" >> $logs_dir/{{serviceName}}-ssl-renewal.log"
|
|
53
|
-
certbot_cron_job="0 0,12 * * * $certbot_cron_command"
|
|
54
|
-
( ( crontab -l || true ) | ( grep -v -F "$certbot_cron_command" || true ) ; echo "$certbot_cron_job" ) | crontab -
|