I resolved this issue by reverted to the original fly.toml:
[build]
[deploy]
release_command = "python manage.py migrate --noinput"
[env]
PORT = "8000"
[http_service]
internal_port = 8000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 1024
[[statics]]
guest_path = "/code/static"
url_prefix = "/static/"
turns out my issue was spotted in a comment by @tomasztomczyk in this related forum post here.
The dns settings were being proxied through Cloudflare, I changed the @ and www records to DNS Only
.
i.e. from:
to:
and the certificate seemed to issue immediately as expected.