27 lines
550 B
TOML
27 lines
550 B
TOML
|
|
# Database Configuration for jpl-website
|
||
|
|
|
||
|
|
[database]
|
||
|
|
# Main database connection
|
||
|
|
url = "${DATABASE_URL}"
|
||
|
|
max_connections = 10
|
||
|
|
min_connections = 1
|
||
|
|
acquire_timeout = 30
|
||
|
|
idle_timeout = 600
|
||
|
|
|
||
|
|
[migrations]
|
||
|
|
# Migration settings
|
||
|
|
auto_migrate = true
|
||
|
|
migration_dir = "migrations"
|
||
|
|
|
||
|
|
[sqlite]
|
||
|
|
# SQLite-specific settings (for development)
|
||
|
|
journal_mode = "WAL"
|
||
|
|
synchronous = "NORMAL"
|
||
|
|
foreign_keys = true
|
||
|
|
busy_timeout = 30000
|
||
|
|
|
||
|
|
[postgresql]
|
||
|
|
# PostgreSQL-specific settings (for production)
|
||
|
|
application_name = "jpl-website"
|
||
|
|
statement_timeout = "30s"
|
||
|
|
lock_timeout = "10s"
|