Moved TLS configuration into a separate file so it's only enabled if we have an SSL certificate