ffreemt commited on
Commit
c666345
·
1 Parent(s): 0bb3296

Add model digitsflow/bonsai-8b

Browse files
Files changed (2) hide show
  1. nginx.conf.template +1 -1
  2. start.sh +1 -2
nginx.conf.template CHANGED
@@ -5,7 +5,7 @@ http {
5
  location / {
6
  # Check the Bearer token
7
  if ($http_authorization != "Bearer ${ACCESS_TOKEN}") {
8
- return 401 "Unauthorized: Invalid API Key\n";
9
  }
10
  proxy_pass http://127.0.0.1:11434;
11
  proxy_set_header Host $host;
 
5
  location / {
6
  # Check the Bearer token
7
  if ($http_authorization != "Bearer ${ACCESS_TOKEN}") {
8
+ return 401 "Unauthorized: Invalid ACCESS_TOKEN\n";
9
  }
10
  proxy_pass http://127.0.0.1:11434;
11
  proxy_set_header Host $host;
start.sh CHANGED
@@ -19,6 +19,7 @@ if [ -n "$OLLAMA_API_KEY" ]; then
19
  ollama pull gemini-3-flash-preview:cloud
20
  ollama pull minimax-m2.7:cloud
21
  ollama pull gemma4:31b-cloud
 
22
  else
23
  echo "Error: OLLAMA_API_KEY secret not found in Space settings."
24
  fi
@@ -26,11 +27,9 @@ fi
26
  export ACCESS_TOKEN=${ACCESS_TOKEN}
27
  export OLLAMA_API_KEY=${OLLAMA_API_KEY}
28
 
29
-
30
  ollama signin
31
  ollama ls
32
 
33
-
34
  envsubst '${ACCESS_TOKEN}' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
35
 
36
  echo "Starting Nginx Reverse Proxy..."
 
19
  ollama pull gemini-3-flash-preview:cloud
20
  ollama pull minimax-m2.7:cloud
21
  ollama pull gemma4:31b-cloud
22
+ ollama pull digitsflow/bonsai-8b
23
  else
24
  echo "Error: OLLAMA_API_KEY secret not found in Space settings."
25
  fi
 
27
  export ACCESS_TOKEN=${ACCESS_TOKEN}
28
  export OLLAMA_API_KEY=${OLLAMA_API_KEY}
29
 
 
30
  ollama signin
31
  ollama ls
32
 
 
33
  envsubst '${ACCESS_TOKEN}' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
34
 
35
  echo "Starting Nginx Reverse Proxy..."