Nginx interacts with the backend (PHP) through http, not https so you need to tell Drupal explicitly when you're using https in settings.php