1
0
Files
kobopatch-webui/start.sh
Nico Verbruggen 347b4f654a
All checks were successful
Build and test project / build-and-test (push) Successful in 1m29s
Use nginx to serve the website
2026-03-19 19:56:24 +01:00

12 lines
276 B
Bash

#!/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;'