It is important to define the https protocol if a fully formed URL is provided, e.g. https://docs.your-domain.com.
If only providing docs.your-domain.com, the https is automatically set by the system.
Providing http://docs.your-domain.com will override the automatic https.