feat: complete user login admin keys and deployment docs
This commit is contained in:
+5
-1
@@ -93,9 +93,13 @@ impl ComfyUIConfig {
|
||||
|
||||
impl AppConfig {
|
||||
pub fn load() -> anyhow::Result<Self> {
|
||||
Self::load_from_file("config.toml")
|
||||
}
|
||||
|
||||
pub fn load_from_file(path: &str) -> anyhow::Result<Self> {
|
||||
dotenvy::dotenv().ok();
|
||||
Ok(Figment::new()
|
||||
.merge(Toml::file("config.toml"))
|
||||
.merge(Toml::file(path))
|
||||
.merge(Env::prefixed("BOOSAPI_").split("__"))
|
||||
.extract()?)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user