Overview
NGINX templates allow you to customize the web server configuration that is generated for new sites. Modify the template to include custom NGINX directives, security headers, or performance optimizations that will be applied to all new site deployments.Related Documentation
Learn how to create sites that use these NGINX templates.
Template Management
Core Features
Custom Templates
Edit NGINX configuration templates
Variable Support
Use dynamic variables for site-specific values
Template Persistence
Save templates for use with new sites
Template Variables
Available Variables
$DOMAIN_NAME
$DOMAIN_NAME
Usage:
server_name $DOMAIN_NAME;
Value: Automatically replaced with the actual domain nameExample: example.com
becomes server_name example.com;
$PUBLIC_DIRECTORY
$PUBLIC_DIRECTORY
Usage:
root $PUBLIC_DIRECTORY;
Value: Automatically set to /current/public
Important: This value should not be changed as it’s required for zero downtime deployments and rollback processesVariable Usage
The
$PUBLIC_DIRECTORY
variable is set to /current/public
and should not be modified. This path is essential for Loupp’s zero downtime deployment and rollback processes to function correctly.Template variables are automatically replaced with actual values when NGINX configurations are generated for new sites.