From 96a9cd525e7caf46704ba2240c1c86f6892e3aaf Mon Sep 17 00:00:00 2001 From: St33v Date: Sun, 15 Mar 2026 15:48:10 +1100 Subject: Add deployment config and strengthen synopticChart.sh - Inline DeriveTime from func/deriveTimeString.sh; delete func/ - Add set -euo pipefail, quoting, and stderr for error messages - Archive PDFs to /var/lib/synoptic/archive/raw/ after conversion - Publish PNG to /srv/www/synopticLatest.png - Add systemd units: synoptic.{service,timer}, synoptic-retry.{service,timer} - Timer fires at 02:10, 08:10, 14:10, 20:10 UTC (2h after BOM publish slots) - Add nginx site config for pestrel.com - Add setup.sh (run once on VPS as root) and deploy.sh (run from cr4y) Co-Authored-By: Claude Sonnet 4.6 --- nginx/pestrel.com.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nginx/pestrel.com.conf (limited to 'nginx') diff --git a/nginx/pestrel.com.conf b/nginx/pestrel.com.conf new file mode 100644 index 0000000..372c321 --- /dev/null +++ b/nginx/pestrel.com.conf @@ -0,0 +1,18 @@ +# Synoptic chart site — pestrel.com +# Installed to /etc/nginx/conf.d/synoptic.conf by setup.sh +# +# Requires /etc/nginx/nginx.conf to include: +# include /etc/nginx/conf.d/*.conf; + +server { + listen 80; + listen [::]:80; + server_name pestrel.com www.pestrel.com; + + root /srv/www; + index index.html; + + location / { + try_files $uri $uri/ =404; + } +} -- cgit v1.3