Update .gitignore
Remote port detection can now use the X-Remote-Port header if set
Use the X-Forwarded-Proto header to set the scheme to https if needed

The "https" option in configuration file is deprecated and will be removed in 0.4