Skip to content

Commit

Permalink
rm traefik insecure mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanfeenstra committed Oct 23, 2024
1 parent 24ef4bc commit d8b8e4d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions second-brain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- sphinx-swarm
command:
# - "--log.level=DEBUG"
- "--api.insecure=true"
# - "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
Expand All @@ -28,7 +28,7 @@ services:
# The HTTP port
- 80:80
# The Web UI (enabled by --api.insecure=true)
- 8080:8080
# - 8080:8080
# entrypoints
- 443:443
- 8883:8883
Expand Down
4 changes: 4 additions & 0 deletions src/bin/stack/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ async fn main() -> Result<()> {

let proj = "stack";
let stack: Stack = load_config_file(proj).await.expect("YAML CONFIG FAIL");
if std::env::var("ONLY_CONFIG_FILE") == Ok("true".to_string()) {
put_config_file(proj, &stack).await;
return Ok(());
}

// put the jwt key into a var
sphinx_swarm::auth::set_jwt_key(&stack.jwt_key);
Expand Down
8 changes: 4 additions & 4 deletions src/secondbrain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ llama-server --hf-repo microsoft/Phi-3-mini-4k-instruct-gguf --hf-file Phi-3-min
*/
pub fn only_local_chat_ui() -> Stack {
println!("only_local_chat_ui");
// let mut llamacpp = crate::images::llama::LlamaImage::new("llama", "8080");
// llamacpp.model("Phi-3-mini-4k-instruct-q4.gguf");
let mut llamacpp = crate::images::llama::LlamaImage::new("llama", "8080");
llamacpp.model("Phi-3-mini-4k-instruct-q4.gguf");
let mongo = crate::images::mongo::MongoImage::new("mongo", "latest");
let mut jamie = crate::images::jamie::JamieImage::new("jamie", "latest");
jamie.links(vec!["mongo"]);
jamie.links(vec!["mongo", "llama"]);
let nodes = vec![
// Node::Internal(Image::Llama(llamacpp)),
Node::Internal(Image::Llama(llamacpp)),
Node::Internal(Image::Mongo(mongo)),
Node::Internal(Image::Jamie(jamie)),
];
Expand Down

0 comments on commit d8b8e4d

Please sign in to comment.