laradhoc icon indicating copy to clipboard operation
laradhoc copied to clipboard

Not working ssl

Open developcreativo opened this issue 1 year ago • 1 comments

Captura de pantalla_área-de-selección_20220929114657

Set to 1 to enable HTTPS, 0 to run only over HTTP

NGINX_ENABLE_HTTPS=1

Captura de pantalla_área-de-selección_20220929121449

Captura de pantalla_área-de-selección_20220929122248

developcreativo avatar Sep 29 '22 16:09 developcreativo

Hi @developcreativo and sorry for the long delay. I've just setup a new project with NGINX_ENABLE_HTTPS=1 and I can't reproduce your issue. I got HTTPS working (with a dummy index.php):

image
  • which version of laradhoc are you using?
  • which files do you have under <project>.docker/images/nginx/ssl?

I think you should see

  • fikrea.test.crt
  • fikrea.test.key

In my example, I got

  • laradhoc.test.crt
  • laradhoc.test.key

which are then mounted in the nginx container:

❯ docker exec -it laradhoc_nginx /bin/bash
root@32ec4d01ee46:/var/www# cd /etc/ssl/certs/
root@32ec4d01ee46:/etc/ssl/certs# ls -la
total 20
drwxr-xr-x 2 root root 4096 Oct 14 14:15 .
drwxr-xr-x 1 root root 4096 Oct 14 14:15 ..
-rw-r--r-- 1 root root   86 Oct 14 14:13 .gitignore
-rw-r--r-- 1 root root    0 Oct 14 14:13 .gitkeep
-rw-r--r-- 1 root root 1818 Oct 14 14:15 laradhoc.test.crt
-rw-r--r-- 1 root root 3272 Oct 14 14:15 laradhoc.test.key
root@32ec4d01ee46:/etc/ssl/certs#

Did you also try to rebuild the containers?

eleftrik avatar Oct 14 '22 14:10 eleftrik