varnish-cache-template by Section
Welcome to your project template, generated by Section! You've just deployed this application to the Section platform, which is a fully managed, high-performance hosting platform for web applications. This template is designed to help you get started with your project on the Section platform quickly and easily. If you need more information or resources, please visit the Section documentation.
Follow the steps below to get started with your project on the Section platform:
This Varnish Cache template leverages nginx as it's egress controller so that we can have more granular control over connections with external services. The out-of-the-box implementation uses the latest nginx Docker image as the base, and the default.conf
file located in the root of this repository defines the origin traffic routing behaviors.
- Navigate to the
default.conf
file located in the root of this repo. - Click the pencil icon (Edit this file) in the top right corner of the file view.
- Make the necessary changes to the file.
- Scroll down to the "Commit changes" section.
- Add a commit message describing the changes you made.
- Click "Commit changes".
Note: The out of the box origin definition is configured to serve the default nginx static home page. In order to use Nginx as a reverse proxy, reference the proxy_pass example commented out in the default.conf file.
- Navigate to the
default.vcl
file located atk8s/base/varnish/default.vcl
. - Click the pencil icon (Edit this file) in the top right corner of the file view.
- Make the necessary changes to the file.
- Scroll down to the "Commit changes" section.
- Add a commit message describing the changes you made.
- Click "Commit changes".
To add a custom domain name to your project using the Section console, follow these steps:
- Log in to your Section account.
- Navigate to your project settings.
- Click on the "Domains" tab.
- Click the "Add Domain" button.
- Enter your custom domain name (e.g.,
example.com
) and click "Save". - Follow the instructions provided to update your domain's DNS settings.
To add additional locations or providers to your project using the Section console, follow these steps:
- Log in to your Section account.
- Navigate to your project settings.
- Click on the "Location Settings" tab.
- Modify your selected locations and providers as needed.
- Click "Apply".
Repeat the above steps to add more locations or providers as needed.
If you want to deploy a different application, you can do so by following these steps:
- Create or log in to your account on Section.
- Follow the project creation wizard to create a new project.
- Follow the instructions provided to deploy your application using a variety of templates or by uploading your own docker containers.
Join our discord community to get help from our team and other developers.