Remove Ollama service from Docker Compose and clean up associated volume
This commit is contained in:
@@ -30,7 +30,7 @@ struct RpcError {
|
||||
const DEV_DEFAULT_PASSWORD: &str = "password123";
|
||||
|
||||
pub struct RpcHandler {
|
||||
_config: Config,
|
||||
config: Config,
|
||||
auth_manager: AuthManager,
|
||||
orchestrator: Option<Arc<DevContainerOrchestrator>>,
|
||||
}
|
||||
@@ -47,7 +47,7 @@ impl RpcHandler {
|
||||
};
|
||||
|
||||
Ok(Self {
|
||||
_config: config,
|
||||
config,
|
||||
auth_manager,
|
||||
orchestrator,
|
||||
})
|
||||
@@ -145,7 +145,7 @@ impl RpcHandler {
|
||||
let is_setup = self.auth_manager.is_setup().await?;
|
||||
if !is_setup {
|
||||
// Dev mode: allow default password so UI can log in without running setup
|
||||
if self._config.dev_mode && password == DEV_DEFAULT_PASSWORD {
|
||||
if self.config.dev_mode && password == DEV_DEFAULT_PASSWORD {
|
||||
return Ok(serde_json::Value::Null);
|
||||
}
|
||||
return Err(anyhow::anyhow!(
|
||||
|
||||
Reference in New Issue
Block a user