jgatjens / docker-nginx-https

DOCKER + NGINX + HTTPS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOCKER + NGINX + HTTPS

Mac setup

Create the certificates.

openssl req -x509 -out localhost.crt -keyout localhost.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

Double click to install localhost.crt in your list of locally trusted roots.

mv -f locahost.crt ./nginx/cert/locahost.crt
mv -f locahost.key ./nginx/cert/locahost.key

Finally just run docker

docker compose up -d

About

DOCKER + NGINX + HTTPS


Languages

Language:TypeScript 100.0%