refactor: simplify nixpacks configuration to basic static file serving
This commit is contained in:
parent
4aed9e220f
commit
815dc1f40e
@ -1,25 +1,11 @@
|
|||||||
# Nixpacks configuration for Coolify static site deployment
|
# Nixpacks configuration for Coolify static site deployment
|
||||||
# This ensures your Coffee website is deployed securely with nginx
|
# Simple configuration for serving static files
|
||||||
|
|
||||||
[variables]
|
[variables]
|
||||||
# Enable static site serving with nginx
|
# Configure for static site
|
||||||
NIXPACKS_NO_CACHE = "1"
|
NIXPACKS_BUILD_CMD = "echo 'Static site - no build needed'"
|
||||||
|
NIXPACKS_START_CMD = "echo 'Static site ready'"
|
||||||
[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]
|
[staticAssets]
|
||||||
# Configure static asset serving
|
# Serve all files from root directory
|
||||||
"/" = "."
|
"/" = "."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user