This commit is contained in:
mike
2025-12-17 15:13:41 +01:00
parent ece4141f3c
commit 30406ab0eb
2 changed files with 4 additions and 7 deletions

View File

@@ -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

View File

@@ -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;
}