Rustelo/config/base/app.toml
Jesús Pérex 515c9343f4
Some checks failed
CI/CD Pipeline / Test Suite (push) Has been cancelled
CI/CD Pipeline / Security Audit (push) Has been cancelled
CI/CD Pipeline / Build Docker Image (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Performance Benchmarks (push) Has been cancelled
CI/CD Pipeline / Cleanup (push) Has been cancelled
chore: add config path
2025-07-07 23:13:01 +01:00

45 lines
1.2 KiB
TOML

# 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