API
The Gcore Customer Portal is being updated. Screenshots may not show the current version.
FastEdge
FastEdge
Chosen image
Home/FastEdge/Create and manage templates

Create and manage templates

Templates include predefined configurations for FastEdge apps. Using templates eliminates the need to manually configure each aspect of an application, which speeds up the configuration process and ensures consistency across deployments.

Create a template

Both CDN and HTTP applications have the same template configuration process.

From the Templates page

To add a template to the Customer Portal:

1. In the Gcore Customer Portal, navigate to FastEdge and choose the relevant page: HTTP Applications or CDN Applications.

2. Open the Templates page and click Create template.

Create template button

3. Add your custom binary file. Once the upload is finished, the file will be automatically added to the Customer Portal.

Add raw binary dialog

4. Give your template a name. Use a clear and descriptive name to ensure the template is easy to identify.

5. (Optional) Add a description to provide extra information about the template.

6. (Optional) Add instructions for using the template. Include any critical information that’s important to know when creating an app, such as required variables, headers, and any configuration tips.

7. Specify any parameters. To add a required parameter, select the Mandatory parameter checkbox. If you need to add encrypted environment variables to applications created from this template, add a new parameter with the type Secret.

Secret parameter marked as required

When creating an application based on this template, this parameter will appear as an environment variable that you can encrypt. Check detailed instructions on how to add environment variables for HTTP apps and CDN apps.

Example of a secret parameter in an app

8. Click Save template.

The template was successfully added. You can use this or any template shared by your admin to create FastEdge applications. To share the template with other users in your account, contact the admin for assistance.

From an existing application

You can convert an existing application into a template for future reuse. The template will be created using the binary of the original application, and it will contain any associated environment variables.

To add a template from an application:

1. In the Gcore Customer Portal, navigate to FastEdge and choose the relevant page: HTTP Applications or CDN Applications.

2. On the Applications page, click the three-dot icon next to the application you want to configure.

3. Select Manage.

4. Click Actions and choose Create template.

Create template from app menu

5. Review the current configuration and, if necessary, update the template's name and description.

6. Click Save template to apply the changes.

Edit a template

To adjust the template configuration or add new settings:

1. In the Gcore Customer Portal, navigate to FastEdge and choose the relevant page: HTTP Applications or CDN Applications.

2. On the Templates page, click the three-dot icon next to the template that you want to edit.

3. Click Edit template.

Create template from app menu

4. Update the configuration as you see fit, and then click Save template to apply the changes.

Create template from app menu

The template has been updated.

Delete a template

Deleted templates can’t be restored.

1. In the Gcore Customer Portal, navigate to FastEdge and choose the relevant page: HTTP Applications or CDN Applications.

2. On the Templates page, click the three-dot icon next to the template that you want to remove.

3. Click Delete template.

Delete template

You’ve permanently removed the template from the Customer Portal.

Update template binary

If you want to update the application binary to a newer version or add substantial changes to the template configuration, you can replace the existing WebAssembly (.wasm) file with a new one.

To update the binary file:

1. In the Gcore Customer Portal, navigate to FastEdge and choose the relevant page: HTTP Applications or CDN Applications.

2. On the Templates page, click the three-dot icon next to the template that you want to edit.

3. Click Update template binary.

Update template binary

4. Add the new .wasm file from your local file system. Once the upload is finished, the file will be automatically added to the Customer Portal.

Upload template binary dialog

5. Verify the current configuration and click Save template to apply the updates.

Create an app from a template

You can deploy a FastEdge application directly from the Templates page:

1. In the Gcore Customer Portal, navigate to FastEdge and choose the relevant page: HTTP Applications or CDN Applications.

2. On the Templates page, find the template you want to use to create an application.

3. Click the three-dot icon next to open template settings and select Create app from template.

4. Proceed with the application configuration as described in the relevant guide:

Was this article helpful?