yiisoft/yii2 — pull request #2785 by armab (2014-03-17 19:12:16+00:00)
Title: Better Secure Connection detection

In PHP-FPM + nginx there is no such env $_SERVER['HTTPS'] and ```Yii::$app->request->isSecureConnection``` is always false.
So checking server port (what is not perfect) seems as ultimate way.