split up application
Build and Push Docker Images / build-and-push (push) Successful in 33s

This commit is contained in:
2025-05-02 21:15:30 +02:00
parent 2b893ca47a
commit de3919a4b5
15 changed files with 1020 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
import os
# Get API key from environment variable
API_KEY = os.getenv('API_KEY')
if not API_KEY:
raise ValueError("API_KEY environment variable must be set")
# Get cache expiry time from environment variable (default: 36 hours)
CACHE_EXPIRY_HOURS = int(os.getenv('CACHE_EXPIRY_HOURS', '36'))
# Get cleanup cron schedule from environment variable (default: every day at 3 AM)
CLEANUP_CRON = os.getenv('CLEANUP_CRON', '0 3 * * *')
# Define custom user agent
CUSTOM_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36'
# Database path
DB_PATH = '/db/cache.db'