From 04b25bc27610075b18db7c5ca476511a65f2bd7e Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 18 Oct 2024 09:53:03 -0400 Subject: [PATCH] chat ui template vars --- src/images/chat.rs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/images/chat.rs b/src/images/chat.rs index 4e5bd13e..44e163c5 100644 --- a/src/images/chat.rs +++ b/src/images/chat.rs @@ -65,11 +65,18 @@ fn chat(node: &ChatImage, mongo: &MongoImage) -> Config { let root_vol = &repo.root_volume; let ports = vec![node.http_port.clone()]; - let env = vec![format!( - "MONGODB_URL=mongodb://{}:{}", - domain(&mongo.name), - mongo.http_port - )]; + let env = vec![ + format!( + "MONGODB_URL=mongodb://{}:{}", + domain(&mongo.name), + mongo.http_port + ), + format!("PUBLIC_APP_NAME=SphinxChat"), + format!("PUBLIC_APP_ASSETS=chatui"), + format!("PUBLIC_APP_COLOR=indigo"), + format!("PUBLIC_APP_DESCRIPTION=\"Your knowledge companion.\""), + ]; + // let env = vec![format!( // "MONGODB_URL=mongodb://{}:{}@{}:{}", // mongo.user,