Allow setting db port
Diff
web-api/Cargo.toml | 2 +-
web-api/src/config.rs | 1 +
web-api/src/database/mod.rs | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
@@ -19,6 +19,6 @@
tracing = "0.1"
tracing-subscriber = "0.3"
toml = "0.5"
tokio = { version = "1.18", features = ["macros"] }
tokio = { version = "1.18", features = ["full"] }
tokio-postgres = { version = "0.7", features = ["with-chrono-0_4", "with-serde_json-1"] }
uuid = { version = "1.0", features = ["v4"] }
@@ -20,5 +20,6 @@
pub user: String,
pub password: String,
pub host: String,
pub port: u16,
pub database: String,
}
@@ -28,6 +28,7 @@
c.user = Some(config.user);
c.password = Some(config.password);
c.host = Some(config.host);
c.port = Some(config.port);
c.dbname = Some(config.database);
c.manager = Some(ManagerConfig {
recycling_method: RecyclingMethod::Verified,