porte 5
This commit is contained in:
@@ -14,7 +14,7 @@ services:
|
|||||||
build: ./web
|
build: ./web
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8001:8001"
|
- "80:80"
|
||||||
networks:
|
networks:
|
||||||
- linedance
|
- linedance
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -31,4 +31,3 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
linedance:
|
linedance:
|
||||||
name: linedance
|
name: linedance
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,12 @@ server {
|
|||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.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 / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -386,7 +386,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const API = 'https://linedanceplayer.dk';
|
const API = '/api';
|
||||||
let token = localStorage.getItem('ld_token') || '';
|
let token = localStorage.getItem('ld_token') || '';
|
||||||
let username = localStorage.getItem('ld_user') || '';
|
let username = localStorage.getItem('ld_user') || '';
|
||||||
let currentPlaylist = null;
|
let currentPlaylist = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user