use X-Forwarded-Proto header for protocol detection
Merge pull request #1 from shao1555/issues/support-ssl-reverse-proxy

use X-Forwarded-Proto header for protocol detection