laravel-octane-dockerfile icon indicating copy to clipboard operation
laravel-octane-dockerfile copied to clipboard

HTTPS support

Open AratKruglik opened this issue 1 year ago • 7 comments

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

AratKruglik avatar Feb 21 '24 20:02 AratKruglik

I have not used HTTPS with these Dockerfiles.

smortexa avatar Feb 24 '24 09:02 smortexa

So it's hard to use for production then (

AratKruglik avatar Mar 03 '24 09:03 AratKruglik

So it's hard to use for production then (

Just put it behind reverse proxy and handle https there.

tudorr89 avatar Mar 03 '24 10:03 tudorr89

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

deantomasevic avatar Mar 12 '24 12:03 deantomasevic

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 avatar Mar 16 '24 00:03 tommmoe

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

tommmoe avatar May 14 '24 11:05 tommmoe

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

smortexa avatar May 15 '24 06:05 smortexa