26 lines
577 B
TOML
26 lines
577 B
TOML
# Nixpacks configuration for Coolify static site deployment
|
|
# This ensures your Coffee website is deployed securely with nginx
|
|
|
|
[variables]
|
|
# Enable static site serving with nginx
|
|
NIXPACKS_NO_CACHE = "1"
|
|
|
|
[phases.setup]
|
|
# Install nginx and required packages
|
|
nixPkgs = ["nginx"]
|
|
|
|
[phases.build]
|
|
# Copy security configuration
|
|
cmds = [
|
|
"mkdir -p /etc/nginx/conf.d",
|
|
"cp coolify-nginx.conf /etc/nginx/conf.d/security.conf"
|
|
]
|
|
|
|
[phases.start]
|
|
# Start nginx with security configuration
|
|
cmd = "nginx -g 'daemon off;'"
|
|
|
|
[staticAssets]
|
|
# Configure static asset serving
|
|
"/" = "."
|