Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
50 lines (38 loc) · 1.46 KB
/
Copy path.env.example
File metadata and controls
50 lines (38 loc) · 1.46 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
# Edge M
5E1E
ining environment configuration file
#
# Copy this file to .env and fill in your actual credentials
#
# Remove the '#' at the beginning of each line to uncomment the settings you want to use.
# replace the placeholder values with your actual credentials or values.
#
# NOTE: Remove the '#' after the value also if you uncomment a line.
#
# Application Settings
LOG_LEVEL=INFO
# Set your timezone (e.g., Europe/Rome, America/New_York)
TIMEZONE=Europe/Rome
# Coordinates for location-based services (e.g., weather forecasting or Sun properties)
LATITUDE=41.9028
LONGITUDE=12.4964
# Persistence Settings
# Adapter type: "in_memory", "sqlite", "sqlalchemy"
PERSISTENCE_ADAPTER=sqlalchemy
# Policies adapter type: "in_memory", "sqlite", "yaml", "sqlalchemy"
POLICIES_PERSISTENCE_ADAPTER=yaml
# Database configuration
# For SQLite: sqlite:///data/db/edgemining.db (default)
# For PostgreSQL: postgresql://user:password@localhost:5432/dbname
# For MySQL: mysql+pymysql://user:password@localhost:3306/dbname
DB_PATH=sqlite:///data/db/edgemining.db
# Alembic Migrations
# Automatically run database migrations on startup (recommended)
RUN_MIGRATIONS_ON_STARTUP=true
# Create a backup of the database before running migrations (SQLite only)
# Backups are stored in data/db/backups/
BACKUP_BEFORE_MIGRATION=true
# Path to the directory for storing optimization policies (when using YAML)
YAML_POLICIES_DIR=data/policies
# API Settings
API_PORT=8001
# Scheduler
SCHEDULER_INTERVAL_SECONDS=5