Set a custom domain for each of your service to let users reach them using your brand’s domain. Say,Documentation Index
Fetch the complete documentation index at: https://docs.localops.co/llms.txt
Use this file to discover all available pages before exploring further.
app.your-awesome-site.com.
Here is how you can set it up.
Steps
1. Add your domain
- Navigate to the specific environment dashboard (from Environments section)
- Click on Services tab to see all services
- In the Service dashboard, navigate to “Custom domain” tab.
- Enter your new domain and click save.
2. Verify your domain - Add CNAME records:
In this step you will verify the ownership of your domain by adding the CNAME records you see in above step. Go to your DNS registrar > DNS Zone and add the given CNAME records.3. Deploy
Once you have added the given CNAME records to your domain’s DNS settings give it a few minutes for the DNS settings to propagate. Then, come back to Service > Custom domain settings page, and click on “Verify and deploy” button. LocalOps will then- configure your service to run on the custom domain you added and
- auomatically provison a brand new auto-renewing SSL Certificate for the custom domain
Access current domain
For your code/service to start reading the new domain, trigger a new deployment on your service. Either by pressing “Deploy” button in the service settings section. Or push a new commit on configured branch of the service. During this deployment, LocalOps fills environment variableLOPS_SVC_HOST with the current active domain.