Files
weight_tracker/Cargo.toml
Lukas Wölfer b6f03f9efb Add config.toml support for OIDC and server configuration
- Add toml crate dependency for TOML file parsing
- Create config module with Config struct to deserialize config.toml
- Support OIDC URLs (auth_url, token_url, redirect_url), credentials (client_id, client_secret)
- Make server host/port, database URL, and session secret configurable
- Create config.example.toml with all configuration options documented
- Update main.rs to load config.toml with fallback to environment variables
- Maintain backward compatibility with environment variable configuration
2026-04-10 23:45:12 +02:00

21 lines
549 B
TOML

[package]
name = "weight_tracker"
version = "0.1.0"
edition = "2024"
[dependencies]
axum = "0.8"
askama = "0.15"
axum_session = "0.19"
axum_session_sqlx = { version = "0.8", features = ["sqlite"]}
oauth2 = "5.0"
reqwest = { version = "0.13", features = ["json"] }
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite", "macros"] }
tokio = { version = "1.0", features = ["full"] }
thiserror = "2.0"
anyhow = "1.0"
serde = { version = "1.0", features = ["derive"] }
toml = "0.8"
tower-http = { version = "0.6", features = ["fs", "cors"] }