mercredi 26 septembre 2018

Laravel 5.7 doesn't generate HTTPS routes if the webserver has no encryption layer installed

The current server setup looks like this.

A server with an nginx reverse proxy pointing to multiple docker containers. Our Laravel 5.7 application runs in one of these containers with nginx + php7.2 FPM

The webserver inside docker should hand an INSECURE response to the reverse proxy which makes it SECURE on the outer layer.

The containerized webserver listens on 80.

All URLs generated by Laravel are HTTP even though the protocol is explicitly specified to be HTTPS in the config/app.php APP_URL setting.

I've also tried a couple of other tricks, sslizing middleware and such but none of them seem to work.

Any idea?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire