Arshit Malik commited on
Commit
ad44f36
·
1 Parent(s): 7e918f4

fix: route /v1/ to gateway for chat API

Browse files
Files changed (1) hide show
  1. start.sh +2 -0
start.sh CHANGED
@@ -95,6 +95,8 @@ python3 /app/health_server.py &
95
  echo "[boot] Health server PID: $!"
96
 
97
  echo "[boot] Starting nginx..."
 
 
98
  nginx
99
 
100
  echo "[boot] Starting Ollama..."
 
95
  echo "[boot] Health server PID: $!"
96
 
97
  echo "[boot] Starting nginx..."
98
+ sed -i "s|location /health|location /v1/ { proxy_pass http://127.0.0.1:8081; proxy_http_version 1.1; proxy_set_header Host \$host; }
99
+ location /health|" /etc/nginx/sites-available/default
100
  nginx
101
 
102
  echo "[boot] Starting Ollama..."