laradhoc
laradhoc copied to clipboard
Not working ssl
Set to 1 to enable HTTPS, 0 to run only over HTTP
NGINX_ENABLE_HTTPS=1
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):

- 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?