-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
32 lines (28 loc) · 960 Bytes
/
.env.example
File metadata and controls
32 lines (28 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SimpleCron Configuration
# Copy this to .env and configure your endpoints
# Global settings
NODE_ENV=development
LOG_LEVEL=info
TIMEZONE=UTC
# Endpoint 1: Example API Processing
ENDPOINT_1_NAME=api-processor
ENDPOINT_1_URL=https://your-api.com/api/process
ENDPOINT_1_METHOD=POST
ENDPOINT_1_HEADERS={"Authorization": "Bearer $API_TOKEN", "Content-Type": "application/json"}
ENDPOINT_1_SCHEDULE=*/5 * * * *
ENDPOINT_1_ENABLED=true
ENDPOINT_1_TIMEOUT=300000
ENDPOINT_1_RETRY_ATTEMPTS=3
ENDPOINT_1_RETRY_DELAY=5000
# Endpoint 2: Example Health Check
ENDPOINT_2_NAME=health-check
ENDPOINT_2_URL=https://api.example.com/health
ENDPOINT_2_METHOD=GET
ENDPOINT_2_HEADERS={}
ENDPOINT_2_SCHEDULE=0 */6 * * *
ENDPOINT_2_ENABLED=false
ENDPOINT_2_TIMEOUT=30000
ENDPOINT_2_RETRY_ATTEMPTS=2
ENDPOINT_2_RETRY_DELAY=2000
# Add more endpoints by incrementing the number (ENDPOINT_3_, ENDPOINT_4_, etc.)
# Each endpoint can have its own schedule, headers, and configuration