Cloud HTTPS Configuration
In the Cloudflare tunnel, I set "https://moodle.mydomain.com" to "HTTP://localhost."
In moodle/config.php, make the following changes:
moodle/config.php
$CFG->wwwroot = 'https://moodle.domain.com';
$CFG->sslproxy = true;