jarvis
This commit is contained in:
@@ -344,7 +344,7 @@
|
||||
<div id="chatContainer">
|
||||
<div id="header">
|
||||
<div>🤖 LM Studio Chat with Streaming</div>
|
||||
<div style="font-size: 0.9em; opacity: 0.9;">Connected to: <code>http://plato.lan:1234</code></div>
|
||||
<div style="font-size: 0.9em; opacity: 0.9;">Connected to: <code>/api (proxied to plato.lan:1234)</code></div>
|
||||
</div>
|
||||
|
||||
<div id="chatLog"></div>
|
||||
@@ -375,7 +375,7 @@
|
||||
|
||||
<script>
|
||||
// Configuration
|
||||
const API_BASE_URL = 'http://plato.lan:1234/v1'
|
||||
const API_BASE_URL = '/api'
|
||||
const API_KEY = 'not-needed'
|
||||
|
||||
// Global state
|
||||
|
||||
@@ -20,6 +20,15 @@ server {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
# Proxy API requests to plato.lan
|
||||
location /api/ {
|
||||
proxy_pass http://plato.lan: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;
|
||||
}
|
||||
|
||||
# Gzip compression for better performance
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
|
||||
Reference in New Issue
Block a user