Add X-Forwarded-Proto to nginx config to support SSL. Fixes #293