From 578e31e213ebd57dfe80f0f99725aae3dd316040 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Thu, 19 Mar 2026 21:07:08 +0100 Subject: [PATCH] Put configuration in nixpacks.toml --- nixpacks.toml | 2 +- start.sh | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 start.sh diff --git a/nixpacks.toml b/nixpacks.toml index 5d5ccae..9c27107 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -13,4 +13,4 @@ cmds = [ ] [start] -cmd = "./start.sh" +cmd = "envsubst '${PORT}' < nginx.conf.template > /tmp/nginx.conf && exec nginx -c /tmp/nginx.conf -g 'daemon off;'" diff --git a/start.sh b/start.sh deleted file mode 100644 index 057d67c..0000000 --- a/start.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" -PORT="${PORT:-8080}" - -# Generate nginx config from template -export PORT -envsubst '${PORT}' < "$SCRIPT_DIR/nginx.conf.template" > /tmp/nginx.conf - -exec nginx -c /tmp/nginx.conf -g 'daemon off;'