Initial commit 🚀

This commit is contained in:
Felix Klement committed 2026-10-09 14:00:40 +02:00
commit fd58a8d32f
235 files changed
+19775

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# Runs the contact handler next to nginx. The handler is restarted if it crashes, but not when it
# exits for missing configuration (code 78); the static site is served either way.
(
cd /srv/contact || exit
while :; do
node contact.mjs
code=$?
[ "$code" -eq 78 ] && { echo "contact: not started, SMTP is not configured." >&2; exit; }
echo "contact: exited with $code, restarting in 5 s." >&2
sleep 5
done
) &
exec nginx -g 'daemon off;'