jarvis
This commit is contained in:
@@ -375,7 +375,10 @@
|
||||
|
||||
<script>
|
||||
// Configuration
|
||||
const API_BASE_URL = '/api'
|
||||
// Use /api proxy when served from production domain, direct access for local dev
|
||||
const API_BASE_URL = window.location.hostname === 'jarvis-lan.appmodel.nl'
|
||||
? '/api'
|
||||
: 'http://192.168.1.74:1234/v1'
|
||||
const API_KEY = 'not-needed'
|
||||
|
||||
// Global state
|
||||
|
||||
@@ -10,12 +10,6 @@ server {
|
||||
try_files $uri $uri.html $uri/ =404;
|
||||
}
|
||||
|
||||
# Don't redirect mobile.html to allow device-specific routing
|
||||
# Skip the .html redirect for mobile.html and index.html
|
||||
location = /mobile.html {
|
||||
try_files /mobile.html =404;
|
||||
}
|
||||
|
||||
location = /index.html {
|
||||
try_files /index.html =404;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user