I have a laravel 7 app running in a dokku container that is secured with letsencrypt. My RESTful/graph endpoints are correctly served securely but my admin backend is trying to load insecure assets over http.
I've set the following environment variables:
- APP_ENV=production
- APP_URL=https://example.com
- APP_URI=https://example.com
- ASSET_URL=https://example.com
I've also tried to enforce https through routes/web.php
:
if (App::environment('production')) {
URL::forceScheme('https');
}/
No matter what, laravel backpack is loading assets through http://example.com/...
thus leading to a mixed-content error.