Contents are served via HTTP despite setting URL to HTTPS

  • App is running inside a docker.
  • I migrated between servers, copied everything and just ran docker-compose up -d
  • I pointed the domain record to the new server
  • Using the same Apache reverse proxy configuration

Everything seems to be working fine so far, but pdf.min.js is loaded via http, therefor being blocked by the browser.
env file:

APP_URL=https://url.de
APP_KEY=...
APP_DEBUG=false
REQUIRE_HTTPS=false
PHANTOMJS_PDF_GENERATION=true
PDF_GENERATOR=snappdf
TRUSTED_PROXIES='*'

My apache configurations:

<VirtualHost *:80>
        ServerName url.de
        ProxyPreserveHost On
        ProxyRequests Off
	ServerAlias www.url.de/
	Redirect permanent / https://url.de/	
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName url.de
        ProxyPreserveHost On
        ProxyRequests Off
        ProxyPass / http://localhost:8001/
        ProxyPassReverse / http://localhost:8001/


Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/url.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/url.de/privkey.pem
</VirtualHost>
</IfModule>

However, invoices, download links, client portals and some more are requested via HTTP.
I tried

  • php artisan optimize
  • php cache:clear
  • php route:cache

I can not figure out why that is happening

Hi,

@david may have some suggestions.

Otherwise, you may want to consider creating an issue on the dockerfile GitHub repo to ask.