Expose public endpoints
Publicly exposing endpoints
A single port (and path) can be exposed as the "main" entry point for an application.
This means that only one port will be exposed to 443 for users to be able to access through HTTPS.

Generated URLs
As you can see in the above screenshot, the URL for the backend is something similar to backend-7avg6c.bunnyenv.com
.
The 7avg6c
part represents the Environment unique identifier within the Bunnyshell system.
Best-practice: If you want to create a template for the environment, you can use {{env.unique}}
as a replacement, when using the URL in other places, such as Component Variables. This will enable other Services, such as the frontend
(for the API URL) to communicate with the backend
.
Example: backend-{{env.unique}}.bunnyenv.com
DNS Records and HTTPS
Bunnyshell automatically creates DNS records and handles certificates for you.
This is done through the use of Cloudflare.
Last updated
Was this helpful?