ui selector

This commit is contained in:
2026-03-13 14:59:32 -03:00
parent ccc478fbaa
commit d5a3372d6b
7 changed files with 173 additions and 11 deletions

View File

@@ -21,6 +21,10 @@ http {
server timeline:5173;
}
upstream chunker {
server chunker:5174;
}
upstream minio {
server minio:9000;
}
@@ -29,6 +33,12 @@ http {
listen 80;
server_name mpr.local.ar;
# Landing page
location = / {
root /etc/nginx;
try_files /landing.html =404;
}
# Django Admin
location /admin {
proxy_pass http://django;
@@ -54,7 +64,7 @@ http {
}
# Timeline UI
location /ui {
location /timeline/ {
proxy_pass http://timeline;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -62,8 +72,17 @@ http {
proxy_set_header Connection "upgrade";
}
# Vite HMR websocket
location /@vite {
# Chunker UI
location /chunker/ {
proxy_pass http://chunker;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Vite HMR websocket (timeline)
location /timeline/@vite {
proxy_pass http://timeline;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
@@ -71,6 +90,15 @@ http {
proxy_set_header Host $host;
}
# Vite HMR websocket (chunker)
location /chunker/@vite {
proxy_pass http://chunker;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
# Media files - proxied from MinIO (local) or S3 (AWS)
location /media/in/ {
proxy_pass http://minio/mpr-media-in/;
@@ -81,13 +109,5 @@ http {
proxy_pass http://minio/mpr-media-out/;
proxy_set_header Host $http_host;
}
# Default to Timeline UI
location / {
proxy_pass http://timeline;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
}