Isolating containers from internet access to enhance security.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#!/bin/sh
|
||||
mkdir -p ~/.config/aichat
|
||||
cat /aichat_config_tpl.yaml | sed "s/__LLM_API_KEY__/${LLM_API_KEY}/" | sed "s/localhost/ollama/" >~/.config/aichat/config.yaml
|
||||
|
||||
cat ~/.config/aichat/config.yaml | grep -v 'api_key' | sed "s/localhost/ollama/" | tee ~/.config/aichat/config.yaml.tmp
|
||||
mv ~/.config/aichat/config.yaml.tmp ~/.config/aichat/config.yaml
|
||||
|
||||
aichat --serve 0.0.0.0
|
||||
|
||||
Reference in New Issue
Block a user