Fix sync auth, add cron script, update env.example

This commit is contained in:
2026-06-11 16:11:38 -03:00
parent 208bc52af7
commit 4ba290004c
4 changed files with 17 additions and 6 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
# Cron: */5 * * * * /ruta/a/sync-cron.sh >> /var/log/prode-sync.log 2>&1
curl -s -X POST "https://prode.beldo.duckdns.org/api/admin/sync?secret=${ADMIN_SYNC_SECRET}" \
-o /dev/null -w "%{http_code}" \
&& echo " [$(date '+%Y-%m-%d %H:%M')] sync ok" \
|| echo " [$(date '+%Y-%m-%d %H:%M')] sync error"