When using nginx and SSL and you have a problem that CSS or JS files are using HTTP in their urls and everything else is in HTTPS. The thing you need to do is use this magic
$_SERVER['HTTPS']='on';
put it in settings.php and also if you have wordpress, do the same, put it in wp-config.php it will do the same and solve the same problem.