Assets being loaded always from http #1046
-
Hi all, Im in need of some help Ive been tasked with transfering a website made using Winter CMS to a new server The site was using Winter on an older version that would not work on PHP 8.2, the version we have in the new server. So I upgraded Winter to the latest version (1.2.4) and also Laravel to 9.1 After that and some config changes, it worked on the new server except for one thing: it only works properly on htpp. If I try it on https, it will load but trying to load all assts (such as css, js and images) using http I dont have familiarity with either Winter or Laravel, so I have no idea whats wrong Ive set APP_URL on the .env to the site url with https, and also set ASSET_URL to the same url with https too. And Ive also tried setting APP_ENV to production, but nothing changes The site is running on an aws elastic bean stalk server with nginx as a proxy and php-fpm Any clues? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind, I just found a solution myself: Ive added LINK_POLICY=secure to the env and now everything loads from https |
Beta Was this translation helpful? Give feedback.
Nevermind, I just found a solution myself: Ive added LINK_POLICY=secure to the env and now everything loads from https