Using the Cloudflare API to generate https certificates for Gitlab

Hello friends, I would like to ask you a question. After about 20 hours of work, I managed to get Gitlab CE Self Hosted up and running and it’s working fine, but I’m facing a problem now.

This Gitlab is behind a NAT, so to generate the first certificate, I disabled our HAProxy for a few minutes, created a NAT of ports 80 and 443 for Gitlab and after that, I forced the certificate to be generated and it worked perfectly.

However, I can’t do this process every 3 months, so I would like to know if anyone knows if it is possible to use the Cloudflare API to generate this certificate, as I do with nginx on some clients that have the same problem.

Thank you in advance for your help.

I assume you want to disable the Lets Encrypt certificate service, and instead use an TLS termination endpoint in front of GitLab? That nginx endpoint could talk to Cloudflare (not sure how, though).