Quellcode durchsuchen

:pencil: updates to README

cia-next
maeda vor 3 Jahren
Ursprung
Commit
0d535b9382
3 geänderte Dateien mit 13 neuen und 7 gelöschten Zeilen
  1. 6
    1
      README.md
  2. 0
    0
      docker-compose.yml
  3. 7
    6
      renew_keys.sh

+ 6
- 1
README.md Datei anzeigen

@@ -13,7 +13,7 @@ host-machine:8001 -> nginx:80 -> nodejs:3001
13 13
 #### Usage
14 14
 Change the configuration files labelled <CHANGE ME> with your domain
15 15
 
16
-Start containers: docker-compose up
16
+Start containers: docker-compose up -d
17 17
 
18 18
 Stop and remove containers: ./kill_production.sh
19 19
 
@@ -29,3 +29,8 @@ Generate new keys with certbot:
29 29
 1. use temporary http challenge mode
30 30
 1. make sure ufw exposes port 80
31 31
 1. copy over the pem files to your nginx keys directory (see renew_keys.sh)
32
+
33
+#### Renewing your certificates
34
+1. Stop the container `./kill_production.sh`
35
+1. Renew certs and copy old certs for backup `./renew_keys.sh`
36
+1. Rebuild the container and restart `./rebuild.sh`

+ 0
- 0
docker-compose.yml Datei anzeigen


+ 7
- 6
renew_keys.sh Datei anzeigen

@@ -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"

Laden…
Abbrechen
Speichern