diff options
| author | mrw1593 <botahamec@outlook.com> | 2023-05-13 12:46:09 -0400 |
|---|---|---|
| committer | mrw1593 <botahamec@outlook.com> | 2023-05-29 10:45:55 -0400 |
| commit | dc08e1486c919dc8f168543adeb86cfe1f3b645e (patch) | |
| tree | faec648a182d9dda738b0c7e859d22deae2c7f49 /src/main.rs | |
| parent | 0b55587443103b20491139d54670474a35286be8 (diff) | |
Make secrets more secret
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index dff3f3f..d454a8c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,8 @@ use services::*; #[actix_web::main] async fn main() -> Result<(), RawUnexpected> { - let sql_pool = db::initialize("password_database", "dbuser", "Demo1234").await?; + let db_url = secrets::database_url()?; + let sql_pool = db::initialize(&db_url).await?; HttpServer::new(move || { App::new() |
