Create a nginx-proxy for development on a local machine.
docker network create nginx-proxy
docker-compose up -d
the default max size for file upload is 2Mb. To increase it, change client_max_body_size
in /vhost.d/my-app.tld
.
scripts from: https://stackoverflow.com/a/60516812/2112538
-
create a root authority cert
bash ./cert-root-create.sh
-
import the certificate authority into your Mac
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain myCA.pem
create a wildcard cert for mysite.com
bash ./cert-create.sh mysite.com