Refactor golden image handling in backup upload process</message>
<message>Update the _set_golden_from_path function to improve the handling of existing golden image files. Replace the existing unlink logic with a more robust method that safely removes files or broken symlinks using the missing_ok parameter. This change enhances the reliability of the backup upload process by ensuring that stale references are properly cleared before setting a new golden image path.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Local server configuration (auto-generated)
|
||||
# SQLite database for local testing
|
||||
|
||||
GNSS_SERVER_DATABASE_URL=sqlite:////Users/alexandershulman/projects2/tm-gnss-guard/server/data/server_local.db
|
||||
GNSS_SERVER_WEB_USERNAME=test
|
||||
GNSS_SERVER_WEB_PASSWORD=Tototheo.25!
|
||||
GNSS_SERVER_SECRET_KEY=local-dev-secret-key-change-in-production
|
||||
GNSS_SERVER_DEBUG=true
|
||||
GNSS_SERVER_HOST=127.0.0.1
|
||||
GNSS_SERVER_PORT=8000
|
||||
|
||||
# ============================================================================
|
||||
# Telegram Bot Configuration (Optional)
|
||||
# ============================================================================
|
||||
# 1. Create bot: Open Telegram → Search @BotFather → /newbot
|
||||
# 2. Get chat ID:
|
||||
# - Start chat with your bot, send any message
|
||||
# - Visit: https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
|
||||
# - Find "chat":{"id":123456789} (positive for DM, negative for groups)
|
||||
# 3. Fill in values below
|
||||
#
|
||||
# Each asset can override the chat_id to send to a different chat/group.
|
||||
# ============================================================================
|
||||
|
||||
GNSS_SERVER_TELEGRAM_BOT_TOKEN=8319259186:AAGfg2tHPlnHduAPvsnODLPA1kaRDIsbx0A
|
||||
GNSS_SERVER_TELEGRAM_CHAT_ID=-4863784324
|
||||
|
||||
# =============================================================================
|
||||
# ASSET OFFLINE DETECTION
|
||||
# =============================================================================
|
||||
|
||||
# Seconds without updates before an asset is considered offline (default: 120)
|
||||
# Triggers Telegram notification when asset goes offline/online
|
||||
GNSS_SERVER_ASSET_OFFLINE_SECONDS=120
|
||||
Reference in New Issue
Block a user