-
Install mkcert.
-
Generate a local signed certificate:
$ mkcert "localhost" "127.0.0.1" "::1" "your-LAN-ipv4"
- Rename the files accordingly and move them to the
nginx
folder.
- Certificate:
.docker/nginx/ssl/localhost.pem
- Private key:
.docker/nginx/ssl/localhost-key.pem
- In case you'll be accessing the web server from another device, follow this.