This commit is contained in:
2026-04-14 17:07:45 +02:00
parent f7b0f16250
commit 58c4e85eaf
3 changed files with 8 additions and 3 deletions

View File

@@ -4,6 +4,12 @@ server {
root /usr/share/nginx/html;
index index.html;
location /api/ {
proxy_pass http://api:8000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
location / {
try_files $uri $uri/ /index.html;
}

View File

@@ -386,7 +386,7 @@
</div>
<script>
const API = 'https://linedanceplayer.dk';
const API = '/api';
let token = localStorage.getItem('ld_token') || '';
let username = localStorage.getItem('ld_user') || '';
let currentPlaylist = null;