multiple-models

This commit is contained in:
mike
2025-12-17 15:35:44 +01:00
parent 30406ab0eb
commit f6fc261588
3 changed files with 197 additions and 37 deletions

View File

@@ -10,11 +10,30 @@ server {
try_files $uri $uri.html $uri/ =404;
}
location = /index.html {
try_files /index.html =404;
}
# Proxy API requests to plato.lan (192.168.1.74)
location /api/plato/ {
proxy_pass http://192.168.1.74:1234/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;
}
# Proxy API requests to stoic.lan (192.168.1.159)
location /api/stoic/ {
proxy_pass http://192.168.1.159:1234/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/;
proxy_set_header Host $host;