feat: add ollama endpoint on 192.168.1.159:8081

Co-authored-by: aider (openai//models/qwen2.5-coder-32b-instruct-q4_k_m.gguf) <aider@aider.chat>
This commit is contained in:
mike
2025-12-27 21:40:15 +01:00
parent 051b2911e7
commit 55eab2ef41
2 changed files with 17 additions and 2 deletions

View File

@@ -45,6 +45,15 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Proxy API requests to ollama (192.168.1.159:8081)
location /api/ollama/ {
proxy_pass http://192.168.1.159:8081/v1/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Default /api/ points to plato for backwards compatibility
location /api/ {
proxy_pass http://192.168.1.74:1234/v1/;