Opencart Broken page CSS images missing

We had this issue with one of our customer

Where the opencard was showing broekn site with no images loading and only skeleton page showing up

The issue was due to issue in opencart config.php

/ HTTP
define(‘HTTP_SERVER’, ‘http where http needs to be changed to https for website to work properly

Once changed the website is working without any issues