# Base Application Configuration
# Core application settings that apply across all environments

# Root Path Configuration
# This sets the base directory for all relative paths in the configuration
# Set via ROOT_PATH environment variable or leave as default to use current directory
root_path = "."

# Application Settings
[app]
name = "Rustelo-app"
version = "0.1.0"
debug = false  # Will be overridden per environment
max_request_size = 10485760  # 10MB in bytes

# Security Configuration
[security]
enable_csrf = true
csrf_token_name = "csrf_token"
rate_limit_requests = 100
rate_limit_window = 60  # seconds
bcrypt_cost = 12

# Session Configuration
[session]
cookie_name = "session_id"
cookie_http_only = true
cookie_same_site = "lax"  # "strict", "lax", or "none"
max_age = 3600  # Session duration in seconds

# CORS Configuration
[cors]
allowed_methods = ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allowed_headers = ["Content-Type", "Authorization", "X-Requested-With"]
allow_credentials = true
max_age = 3600

# Logging Configuration
[logging]
format = "json"  # "json" or "text"
max_file_size = 10485760  # 10MB
max_files = 5
enable_console = true
enable_file = false
