You can't hard-code https.  This needs to come from settings.SECURESYNC_PROTOCOL.