|
|
@@ -1,18 +1,19 @@
|
|
1
|
1
|
#!/bin/bash
|
|
2
|
2
|
|
|
3
|
|
-docker stop production_nginx_1
|
|
|
3
|
+docker stop reverse-proxy
|
|
4
|
4
|
|
|
5
|
5
|
### Get new keys
|
|
6
|
6
|
sudo certbot renew
|
|
7
|
7
|
|
|
8
|
8
|
### Remove the old keys
|
|
9
|
|
-rm ~/production/nginx/keys/letsencrypt/old/letsencrypt.*
|
|
|
9
|
+rm /opt/reverse-proxy/nginx/keys/letsencrypt/old/letsencrypt.*
|
|
10
|
10
|
|
|
11
|
11
|
### Deprecate and back up the current keys
|
|
12
|
|
-mv ~/production/nginx/keys/letsencrypt.* ~/production/nginx/keys/old
|
|
|
12
|
+mv /opt/reverse-proxy/nginx/keys/letsencrypt.* /opt/reverse-proxy/nginx/keys/old
|
|
13
|
13
|
|
|
14
|
14
|
### Copy over the new keys
|
|
15
|
|
-sudo cat /etc/letsencrypt/live/<CHANGE_ME>/fullchain.pem > ~/production/nginx/keys/letsencrypt.crt
|
|
16
|
|
-sudo cat /etc/letsencrypt/live/<CHANGE_ME>/privkey.pem > ~/production/nginx/keys/letsencrypt.key
|
|
|
15
|
+sudo cat /etc/letsencrypt/live/www.craftinamerica.org/fullchain.pem > /opt/reverse-proxy/nginx/keys/letsencrypt.crt
|
|
|
16
|
+sudo cat /etc/letsencrypt/live/www.craftinamerica.org/privkey.pem > /opt/reverse-proxy/nginx/keys/letsencrypt.key
|
|
|
17
|
+
|
|
|
18
|
+echo "RUN the ./rebuild.sh script now to move over the newly generated keys and restart the container"
|
|
17
|
19
|
|
|
18
|
|
-echo "RUN the ./rebuild.sh script now to move over the newly generated keys and restart the container"
|