If you are already using Cloudflare DNS Manager, you could point your domain to the Tunnel’s VHOST_HTTP_HOST and use Wilcard * as the Name/Subdomain.
Using NGINX with Certbot
While you might be want to be more flexible with DNS Manager, this option may suit you the most,
before following the guide, make sure you had cerbot CLI installed, if you don’t have one,
please follow the Official Guide to install certbot CLI.
After you had certbot installed on your system, Let’s Encrypt require you to do some validation before you able to request for an SSL Certificate
and the most less error-prone way are using DNS as the validation challenges
for example, I had domain called s3gui.com
here’s the full log of the process:
now, after you had this two files:
you may now update your nginx’s configuration file
If you wish your domain to be only receive HTTPS request, you might want to change Lokal’s VHOST_HTTP_PORT to be something else rather than using port 80
now after everything is being set-up, you might want to add the domain to Lokal Client