-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
57 lines (50 loc) · 1.8 KB
/
env.example
File metadata and controls
57 lines (50 loc) · 1.8 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Discord
DISCORD_TOKEN=
DISCORD_OIL_CHANNEL=
DISCORD_RROTD_CHANNEL=
# Bot Runtime
BOT_STATUS=Working
CLEAR_GUILD_COMMANDS_ON_STARTUP=false
RUN_SUPERVISED=true
# Oil Service
OIL_PRICE_URL=https://play.myfly.club/oil-prices
POLLING_INTERVAL=180 # 3 minutes in seconds
# Aviation Service
AVIATION_INFO_ENABLED=true
AVIATION_AIRPORT_ID_LOOKUP_ENABLED=false
# ROTD Service
ROTD_ENABLED=true
ROTD_SCHEDULE_ENABLED=true
ROTD_SCHEDULE_TZ=UTC
ROTD_SCHEDULE_HOUR=15
ROTD_SCHEDULE_MINUTE=0
ROTD_ORIGIN_ID=
ROTD_DEST_ID=
ROTD_MIN_DISTANCE_KM=4500
ROTD_MIN_AIRPORT_SIZE=4
ROTD_DEST_MAX_SIZE_FILTER_ENABLED=true
ROTD_DEST_MAX_SIZE=7
ROTD_MAX_RETRY_ATTEMPTS=1000
ROTD_RANDOM_SELECTION_TIMEOUT_SECONDS=300
ROTD_SCHEDULE_SELECTION_TIMEOUT_SECONDS=600
ROTD_SELECTION_SAFETY_FLOOR_ATTEMPTS=1000
ROTD_FALLBACK_MAX_AIRPORT_ID=4000
# MyFly API
MFC_BASE_URL=https://play.myfly.club
MFC_API_VERSION=v5.1.1
MFC_SEARCH_ROUTE_PATH_TEMPLATE=/search-route/{origin_id}/{dest_id}
MFC_RESEARCH_LINK_PATH_TEMPLATE=/research-link/{origin_id}/{dest_id}
MFC_AIRPORT_BY_ID_PATH_TEMPLATE=/airports/{airport_id}/detail
MFC_AIRPORT_DETAIL_PATH_TEMPLATE=/airports/{airport_id}/detail
MFC_AIRPORT_DETAIL_STATIC_PATH_TEMPLATE=/airports/{airport_id}/detail-static
MFC_AIRPORTS_PATH=/airports
MFC_AIRPORTS_STATIC_PATH=/api/v5.1.1/airports-static
MFC_AIRPLANE_MODELS_PATH=/api/v5.1.1/airplane-models
# HTTP Circuit Breaker
CB_FAILURE_THRESHOLD=3 # consecutive failures before opening breaker
CB_OPEN_SECONDS=120 # cooldown before half-open probe
CB_HALF_OPEN_PROBES=1 # number of probe requests in half-open
# Crash Handler
MAX_RESTART_ATTEMPTS=5 # Maximum number of restart attempts before giving up
RESTART_DELAY_BASE=10 # Base delay in seconds (exponential backoff)
EMERGENCY_CHANNEL_ID= # Optional: separate channel for crash alerts (leave empty to use main channel)