Domain
Last updated
Was this helpful?
Last updated
Was this helpful?
You can reserve a domain name so that it will never be assigned to another user, even if your tunnel is offline; you can reserve a subdomain of the form sub.loclx.io
or a totally custom domain like example.com
.
This will reserve the domain dev.loclx.io
if you want to reserve in another region you need to pass --region ap
for example then the final domain will be dev.ap.loclx.io
.
The command above will reserve example.com
and it will return a DNS record that you need to add in your domain DNS settings, check tutorial for more information.
Create a Let's Encrypt certificates for your reserved custom domain is simple with LocalXpose, you just need to run:
You can reserve a wildcard custom domain by doing
This command will check your DNS if configured correctly, it may take time to see your domain as verified
due to time.
This will create a Let's Encrypt certificate and store it in your machine, then you can use the generated certificate in your tunnel.
Then you can start /s or tunnel in this reserved wildcard domain by running:
Read more about creating tunnel with wildcard domain.