File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,24 @@ xdebug.remote_enable = On
5151xdebug.remote_host = 172.10.0.1
5252```
5353
54+ ## Enable HTTPS
55+
56+ * Use it only locally.*
57+
58+ Generate self-signed certificates:
59+
60+ ```
61+ openssl req -newkey rsa:2048 -sha256 -nodes -keyout YOURPRIVATE.key -x509 -days 365 -out YOURPUBLIC.pem -subj "/C=US/ST=New York/L=Brooklyn/O=Example Brooklyn Company/CN=YOURDOMAIN.EXAMPLE"
62+ ```
63+
64+ Run container with additional env vars:
65+
66+ ```
67+ docker run -d -p443:443 -v `pwd`:/var/www/html -e NGINX_SSL_PUBLIC_CERTIFICATE=/var/www/html/YOURPUBLIC.pem -e NGINX_SSL_PRIVATE_CERTIFICATE=/var/www/html/YOURPRIVATE.key formapro/nginx-php-fpm:latest
68+
69+ curl https://localhost:443 --insecure
70+ ```
71+
5472## Developed by Forma-Pro
5573
5674Forma-Pro is a full stack development company which interests also spread to open source development.
You can’t perform that action at this time.
0 commit comments