Apply ProxyFix middleware to respect X-Forwarded-Proto header

fixes previous problem where flask was redirecting to http
URL with trailing slash

h/t @icereval @jmcarp
Must opt in to proxyfix
Merge branch 'hotfix/0.21.2'