refactor: simplify nixpacks configuration to basic static file serving

This commit is contained in:
Greg 2025-07-18 20:20:13 +02:00
parent 4aed9e220f
commit 815dc1f40e

View File

@ -1,25 +1,11 @@
# Nixpacks configuration for Coolify static site deployment
# This ensures your Coffee website is deployed securely with nginx
# Simple configuration for serving static files
[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;'"
# Configure for static site
NIXPACKS_BUILD_CMD = "echo 'Static site - no build needed'"
NIXPACKS_START_CMD = "echo 'Static site ready'"
[staticAssets]
# Configure static asset serving
# Serve all files from root directory
"/" = "."