Case A: Cloudflare access (This is what you probably want)
If you want to protect your subdomains with Cloudflare Access, you can add them to thecloudflare_access_applications list in the variables.auto.tfvars file.
For example, imagine that using Coolify you’ve deployed a service that is running on the subdomain htop.yourdomain.com. You can add this subdomain to the cloudflare_access_applications list to protect it with Cloudflare Access.
- Update the
variables.auto.tfvarsfile with the new subdomain to protect.
- Run the installer
go run selfhoster.go --applyin the root of the project.
Case B: Tunneling to services running directly on the instance
Update thevariables.auto.tfvars file with the new subdomain you want to add.
Example: Add a new subdomain htop to your domain.
- Update the
variables.auto.tfvarsfile with the new subdomain.
- Run the installer
go run selfhoster.go --applyin the root of the project.
https://htop.yourdomain.com