Search…
Domain
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.

Usage

Reserve a subdomain

loclx domain reserve --subdomain dev

Reserve a custom domain

loclx domain reserve --domain example.com --region ap
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 THIS tutorial for more information.

Check if you configured your DNS correctly

loclx domain status --domain example.com

Create a Let's Encrypt certificate

Create a Let's Encrypt certificates for your reserved custom domain is simple with LocalXpose, you just need to run:
loclx domain letsencrypt --domain example.com
This will create a Let's Encrypt certificate and store it in your machine, then you can use the generated certificate in your TLS tunnel.
Creating Let's Encrypt certificate mostly needed only when you want to use TLS tunnel, HTTP tunnel will automatically generate the certificate for you and handle the renewal too.

Wildcard custom domain

You can reserve a wildcard custom domain by doing
loclx domain reserve --domain '*.example.com'
Then you can start HTTP/s or TLS tunnel in this reserved wildcard domain by running:
loclx tunnel http --reserved-domain '*.example.com`
Read more here about creating tunnel with wildcard domain.