Adds https option for API server