Can be configured from the config file, and also using environment options. ```toml [database] url = "postgresql://fc_ci:password@localhost/fc_ci" max_connections = 20 min_connections = 5 connect_timeout = 30 idle_timeout = 600 max_lifetime = 1800 ``` We'll want to support SQlite in the future, and better secret handling for database credentials. For now, this is workable. --- Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I36b4c1306511052a2748ca9d5d3429366a6a6964
34 lines
963 B
TOML
34 lines
963 B
TOML
[workspace]
|
|
members = [
|
|
"crates/server",
|
|
"crates/evaluator",
|
|
"crates/queue-runner",
|
|
"crates/common",
|
|
"crates/migrate-cli",
|
|
]
|
|
resolver = "3"
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "MPL-2.0"
|
|
repository = "https://gitub.com/feel-co/fc"
|
|
authors = ["NotAShelf <raf@notashelf.dev"]
|
|
|
|
[workspace.dependencies]
|
|
tokio = { version = "1.48.0", features = ["full"] }
|
|
axum = "0.8.6"
|
|
sqlx = { version = "0.8.6", features = ["runtime-tokio-rustls", "postgres", "chrono", "uuid", "migrate"] }
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
serde_json = "1.0.145"
|
|
uuid = { version = "1.18.1", features = ["v4", "serde"] }
|
|
chrono = { version = "0.4.42", features = ["serde"] }
|
|
tracing = "0.1.41"
|
|
tracing-subscriber = { version = "0.3.20", features = ["env-filter"] }
|
|
anyhow = "1.0.100"
|
|
thiserror = "2.0.17"
|
|
git2 = "0.20.2"
|
|
clap = { version = "4.5.51", features = ["derive"] }
|
|
config = "0.15.18"
|
|
tempfile = "3.8"
|
|
toml = "0.9.8"
|