docker-symfony icon indicating copy to clipboard operation
docker-symfony copied to clipboard

SSL for nginx

Open ceeeeb opened this issue 8 years ago • 3 comments

Hello

Thank for you repo.

Can you explain me how to integrate an SSL certificate on nginx

ceeeeb avatar Aug 30 '16 08:08 ceeeeb

sorry I've no idea. But I found some stuff on the Internets...

maxpou avatar Sep 11 '16 17:09 maxpou

@ceeeeb you can find a solution in this repo https://github.com/MarvAmBass/docker-nginx-ssl-secure

adam187 avatar Nov 10 '16 20:11 adam187

Add the ssl related section to the nginx conf.

Just an example:

listen                      443 default_server ssl;

    ssl_certificate             /etc/nginx/ssl/cert.pem;
    ssl_certificate_key         /etc/nginx/ssl/cert.key;

And add a default self-signed certificate for symfony.dev.

Mount the certificate files (.pem and .key) from the host to the nginx container with the volumes key of docker-compose

leroy0211 avatar Dec 21 '16 15:12 leroy0211