https://github.com/jgatjens/docker-nginx-https
DOCKER + NGINX + HTTPS
https://github.com/jgatjens/docker-nginx-https
Last synced: about 1 month ago
JSON representation
DOCKER + NGINX + HTTPS
- Host: GitHub
- URL: https://github.com/jgatjens/docker-nginx-https
- Owner: jgatjens
- Created: 2022-10-12T20:32:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-12T20:34:31.000Z (about 3 years ago)
- Last Synced: 2025-02-21T09:23:59.781Z (10 months ago)
- Language: TypeScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## DOCKER + NGINX + HTTPS
#### Mac setup
Create the certificates.
```bash
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.
```bash
mv -f locahost.crt ./nginx/cert/locahost.crt
mv -f locahost.key ./nginx/cert/locahost.key
```
Finally just run docker
```bash
docker compose up -d
```