chore(dashboard): build workarounds + deploy config
(damascus-dashboard is archived on Gitea; this is a local-only commit that documents the build workarounds and deploy files in tree.)
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
dist/
|
||||
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
dashboard:
|
||||
image: nginx:alpine
|
||||
container_name: damascus-dashboard
|
||||
volumes:
|
||||
- ./dist:/usr/share/nginx/html:ro
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
networks:
|
||||
- litellm_hermes-net
|
||||
extra_hosts:
|
||||
- "host.docker.internal:172.19.0.1"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.damascus-dashboard.rule=Host(`dashboard.damascusfront.net`)"
|
||||
- "traefik.http.routers.damascus-dashboard.entrypoints=websecure"
|
||||
- "traefik.http.routers.damascus-dashboard.tls.certresolver=cloudflare"
|
||||
- "traefik.http.services.damascus-dashboard.loadbalancer.server.port=80"
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
litellm_hermes-net:
|
||||
external: true
|
||||
21
nginx.conf
Normal file
21
nginx.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name dashboard.hermes.damascusfront.net;
|
||||
|
||||
# Static files
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# SPA fallback
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Proxy API calls to v3 API server on host
|
||||
location /api/ {
|
||||
proxy_pass http://host.docker.internal:5170/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user