Skip to content

Commit 0699d87

Browse files
committed
upd readme.
1 parent 4cf0d1c commit 0699d87

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ xdebug.remote_enable = On
5151
xdebug.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

5674
Forma-Pro is a full stack development company which interests also spread to open source development.

0 commit comments

Comments
 (0)