diff --git a/.env.example b/.env.example index 186cb2a..efbd61c 100644 --- a/.env.example +++ b/.env.example @@ -25,11 +25,9 @@ MC_CONFIG_DIR=./data/meshcore # Application Settings # ============================================ -# Hours of inactivity before contacts can be cleaned up -MC_INACTIVE_HOURS=48 - # Note: Auto-refresh is now intelligent and checks for new messages every 10 seconds # No configuration needed - the system automatically updates UI only when new messages arrive +# Contact cleanup threshold is set directly in the UI (default: 48 hours) # ============================================ # Archive Configuration diff --git a/app/config.py b/app/config.py index 29cbf0f..c088374 100644 --- a/app/config.py +++ b/app/config.py @@ -21,9 +21,6 @@ class Config: # MeshCore Bridge configuration MC_BRIDGE_URL = os.getenv('MC_BRIDGE_URL', 'http://meshcore-bridge:5001/cli') - # Application settings - MC_INACTIVE_HOURS = int(os.getenv('MC_INACTIVE_HOURS', '48')) - # Archive configuration MC_ARCHIVE_DIR = os.getenv('MC_ARCHIVE_DIR', '/root/.archive/meshcore') MC_ARCHIVE_ENABLED = os.getenv('MC_ARCHIVE_ENABLED', 'true').lower() == 'true' diff --git a/docker-compose.yml b/docker-compose.yml index bf366d2..e768692 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -45,7 +45,6 @@ services: - MC_BRIDGE_URL=http://meshcore-bridge:5001/cli - MC_DEVICE_NAME=${MC_DEVICE_NAME} - MC_CONFIG_DIR=/root/.config/meshcore - - MC_INACTIVE_HOURS=${MC_INACTIVE_HOURS:-48} - MC_ARCHIVE_DIR=/root/.archive/meshcore - MC_ARCHIVE_ENABLED=${MC_ARCHIVE_ENABLED:-true} - MC_ARCHIVE_RETENTION_DAYS=${MC_ARCHIVE_RETENTION_DAYS:-7}