Build ui for prod

This commit is contained in:
2025-04-14 22:55:32 -04:00
parent c4ac1ff14d
commit 9ad87fbac5
15 changed files with 367 additions and 18456 deletions

View File

@@ -20,9 +20,15 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Reverse proxy for the UI and default catch-all
# Serve static files if they exist, otherwise proxy to the UI backend
location / {
proxy_pass http://${NGINX_INTERNAL_HOST}:${UI_PORT}/;
root ${UI_ROOT};
try_files $uri /index.html @ui_backend;
}
# Fallback to proxying for UI requests
location @ui_backend {
proxy_pass http://${NGINX_INTERNAL_HOST}:${UI_PORT};
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

View File

@@ -40,9 +40,15 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# Reverse proxy for the UI and default catch-all
# Serve static files if they exist, otherwise proxy to the UI backend
location / {
proxy_pass http://${NGINX_INTERNAL_HOST}:${UI_PORT}/;
root ${UI_ROOT};
try_files $uri /index.html @ui_backend;
}
# Fallback to proxying for UI requests
location @ui_backend {
proxy_pass http://${NGINX_INTERNAL_HOST}:${UI_PORT};
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;