Better default URL for x-primus, detect HTTPS