exaco / laravel-octane-dockerfile

Production-ready Dockerfile for Laravel Octane (FrankenPHP, Swoole, RoadRunner) powered web services and microservices. Done right.
MIT License
613 stars 92 forks source link

HTTPS support #64

Open AratKruglik opened 8 months ago

AratKruglik commented 8 months ago

Does laravel-octane-dockerfile support HTTPS connection? How to use HTTPS?

smortexa commented 8 months ago

I have not used HTTPS with these Dockerfiles.

AratKruglik commented 8 months ago

So it's hard to use for production then (

tudorr89 commented 8 months ago

So it's hard to use for production then (

Just put it behind reverse proxy and handle https there.

deantomasevic commented 8 months ago

Just put it behind reverse proxy and handle https there.

franken already supports https, so it would be useful if it can be used without reverse proxy

tommmoe commented 7 months ago

So it's hard to use for production then (

Following the FrankenPHP instructions, you're meant to set the SERVER_NAME env, also running octane with the --https switch actually changes the server running prefix:

   INFO  Server running…

  Local: https://localhost:443

But I get

WARN  installing root certificate (you might be prompted for password)
ERROR  failed to install root certificate

While I can get in via "https" it's not getting a certificate possibly due to the failure to install the root cert..

tommmoe commented 5 months ago

@smortexa any ideas why i still get

2024-05-14 21:32:06 WARN installing root certificate (you might be prompted for password) 2024-05-14 21:32:06 2024-05-14 21:32:06 ERROR failed to install root certificate 2024-05-14 21:32:06 2024-05-14 21:32:06 WARN stapling OCSP

with the latest release?

smortexa commented 5 months ago

@tommmoe There seems to be a conflict between FrankenPHP requiring root access for certificate installation and our Dockerfile using a non-root user.