Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
maeda 0262a3d418 :pencil: doc a little clarity for first time running 3 år sedan
nginx Update 'nginx/configs/default.conf' 4 år sedan
README.md :pencil: doc a little clarity for first time running 3 år sedan
docker-compose.yml :recycle: adjusting defaults 5 år sedan
kill_production.sh :recycle: adjusting defaults 5 år sedan
rebuild_production.sh :recycle: adjusting defaults 5 år sedan
renew_keys.sh first commit | nginx configs | compose files | ssl scripts 7 år sedan

README.md

Production Container Helpers

Nginx container

Nodejs Application container

Nginx serves the application as a reverse proxy.

host-machine:8001 -> nginx:80 -> nodejs:3001

Usage

Change the configuration files labelled with your domain

Start containers: docker-compose up

Stop and remove containers: ./kill_production.sh

Generate new keys with certbot:

-Check using `sudo certbot renew --dry-run`
-Run the commands inside the `generatekeys.sh`
-DO NOT run `generatekeys.sh` as a script
-Run the `./rebuild.sh` script to use the new keys

First Run

  1. install certbot
  2. run sudo certbot certonly
  3. use temporary http challenge mode
  4. make sure ufw exposes port 80
  5. copy over the pem files to your nginx keys directory (see renew_keys.sh)