- seed.rs: creates 21 permissions, admin+viewer roles, admin user with Argon2 password - AuthConfig added to server config with default password Admin@2026 - Server startup: auto-creates default tenant and seeds auth data if not exists - Idempotent: checks for existing tenant before seeding
23 lines
344 B
TOML
23 lines
344 B
TOML
[server]
|
|
host = "0.0.0.0"
|
|
port = 3000
|
|
|
|
[database]
|
|
url = "postgres://erp:erp_dev_2024@localhost:5432/erp"
|
|
max_connections = 20
|
|
min_connections = 5
|
|
|
|
[redis]
|
|
url = "redis://localhost:6379"
|
|
|
|
[jwt]
|
|
secret = "change-me-in-production"
|
|
access_token_ttl = "15m"
|
|
refresh_token_ttl = "7d"
|
|
|
|
[auth]
|
|
super_admin_password = "Admin@2026"
|
|
|
|
[log]
|
|
level = "info"
|