Files
RepoHub/.env.example
T
Yusuf İpek ea792a8a7f feat: add package pruning system with configurable grace periods
- Implemented automatic pruning of stale packages across all platform sync endpoints (Arch, AUR, Debian, Ubuntu, Fedora, Homebrew, Winget)
- Added `last_seen_at` tracking to mark packages as seen during sync runs and identify inactive packages
- Introduced `PRUNE_GRACE_DAYS` and `PRUNE_HARD_DELETE_DAYS` environment variables for configurable soft-delete and hard-delete thresholds
2025-11-13 01:54:23 +03:00

31 lines
918 B
Bash

# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_NAME=repohub
DB_USER=postgres
DB_PASSWORD=your_password_here
# Next.js Configuration
NEXTAUTH_URL=http://localhost:3002
NEXTAUTH_SECRET=your_secret_here
# API Configuration
API_BASE_URL=http://localhost:3000/api
# Cryptomus API Configuration
# Get these from your Cryptomus merchant dashboard: https://cryptomus.com/merchant
CRYPTOMUS_MERCHANT_ID=your_merchant_id_here
CRYPTOMUS_PAYMENT_API_KEY=your_payment_api_key_here
# Sync Configuration
# Enable sync operations only from the server itself (set to 'true' on production server)
SYNC_SERVER_ONLY=false
# Automatic sync frequency in days (set to 0 to disable automatic sync)
AUTO_SYNC_DAYS=1
# Secret key to authorize sync operations from server
SYNC_SECRET_KEY=your_sync_secret_key_here
# Prune Configuration
# Number of days to wait before pruning packages
PRUNE_GRACE_DAYS=7
PRUNE_HARD_DELETE_DAYS=1