root_path = "/Users/Akasha/Development/rustelo/template"

[server]
protocol = "http"
host = "0.0.0.0"
port = 3030
environment = "development"
log_level = "debug"

[database]
enabled = false
url = ""
#url = "sqlite:///tmp/dev_database.db"
max_connections = 10
min_connections = 1
connect_timeout = 30
idle_timeout = 600
max_lifetime = 1800

[session]
secret = "change-this-in-production-to-a-secure-random-string"
cookie_name = "session_id"
cookie_secure = false
cookie_http_only = true
cookie_same_site = "lax"
max_age = 3600

[cors]
allowed_origins = [
    "http://localhost:3033",
    "http://127.0.0.1:3033",
]
allowed_methods = [
    "GET",
    "POST",
    "PUT",
    "DELETE",
    "OPTIONS",
]
allowed_headers = [
    "Content-Type",
    "Authorization",
    "X-Requested-With",
]
allow_credentials = true
max_age = 3600

[static]
assets_dir = "public"
site_root = "target/site"
site_pkg_dir = "pkg"

[server_dirs]
public_dir = "public"
uploads_dir = "uploads"
logs_dir = "logs"
temp_dir = "tmp"
cache_dir = "cache"
config_dir = "config"
data_dir = "data"
backup_dir = "backups"
template_dir = "templates"

[security]
enable_csrf = false
csrf_token_name = "csrf_token"
rate_limit_requests = 100
rate_limit_window = 60
bcrypt_cost = 12

[oauth]
enabled = false

[email]
enabled = false
provider = "console"
smtp_host = "smtp.gmail.com"
smtp_port = 587
smtp_username = "your-email@gmail.com"
smtp_password = "your-app-password"
smtp_use_tls = false
smtp_use_starttls = true
sendgrid_api_key = ""
sendgrid_endpoint = "https://api.sendgrid.com/v3/mail/send"
from_email = "noreply@yourapp.com"
from_name = "Your App"
email_enabled = true

[redis]
enabled = false
url = "redis://localhost:6379"
pool_size = 10
connection_timeout = 5
command_timeout = 5

[app]
name = "My Rust App"
version = "0.1.0"
debug = true
enable_metrics = false
enable_health_check = true
enable_compression = true
max_request_size = 10485760
admin_email = "admin@example.com"

[logging]
format = "pretty"
level = "debug"
file_path = "logs/app.log"
max_file_size = 10485760
max_files = 5
enable_console = true
enable_file = false

[content]
enabled = false
content_dir = "content"
cache_enabled = true
cache_ttl = 3600
max_file_size = 5242880

[features.auth]
enabled = false
jwt = true
oauth = false
two_factor = false
sessions = true
password_reset = true
email_verification = false

[features.rbac]
enabled = false
database_access = false
file_access = false
content_access = false
api_access = false
categories = false
tags = false
caching = false
audit_logging = false
toml_config = false
hierarchical_permissions = false
dynamic_rules = false

[features.content]
enabled = false
markdown = true
syntax_highlighting = false
file_uploads = true
versioning = false
scheduling = false
seo = true

[features.security]
csrf = false
security_headers = true
rate_limiting = true
input_sanitization = true
sql_injection_protection = true
xss_protection = true
content_security_policy = true

[features.performance]
response_caching = true
query_caching = true
compression = true
connection_pooling = true
lazy_loading = false
background_tasks = true

[features.custom]
