Centos 7 Moodle SSL broken CSS on NGINX

We added this lines $CFG->wwwroot = 'https://online.moodle.com';and $CFG->sslproxy=true; to /var/www/html/your_moodle/config.php and restart nginx

systemctl restart nginx
dbtype    = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'online.moodle.com';
$CFG->dbuser    = 'moodle';
$CFG->dbpass    = '123456';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbport' => '',
  'dbsocket' => '',
  'dbcollation' => 'utf8_unicode_ci',
);

$CFG->wwwroot   = 'http://online.moodle.com';
$CFG->wwwroot   = 'https://online.moodle.com';
$CFG->dataroot  = '/var/www/moodledata/online.moodle.com';
$CFG->admin     = 'admin';
$CFG->dirroot = '/var/www/html/online.moodle.com';
$CFG->directorypermissions = 0777;
$CFG->sslproxy=true;
$CFG->xsendfile = 'X-Accel-Redirect';
$CFG->xsendfilealiases = array(
    '/dataroot/' => $CFG->dataroot
);

require_once(__DIR__ . '/lib/setup.php');

// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!

//$CFG->passwordsaltmain = '~ua?345435436nbP,>f553&W747457656';