SamuelLance73 commited on
Commit
fa0f243
·
verified ·
1 Parent(s): 01ba9f5

Automated deployment update from ML build

Browse files
Files changed (1) hide show
  1. config/nginx.conf.template +8 -5
config/nginx.conf.template CHANGED
@@ -97,14 +97,17 @@ http {
97
  }
98
 
99
  # LiteLLM dashboard — UI shell and Next.js static assets.
100
- # The UI is a Next.js app: HTML loads from /litellm-ui/ but then
101
- # fetches JS/CSS from absolute paths like /_next/static/... which
102
- # must also be proxied to the litellm process on :8080.
103
  location = /litellm-ui {
104
- return 301 /litellm-ui/;
105
  }
106
-
107
  location /litellm-ui/ {
 
 
 
 
 
108
  proxy_pass http://127.0.0.1:8080/ui/;
109
  proxy_http_version 1.1;
110
  proxy_set_header Host $host;
 
97
  }
98
 
99
  # LiteLLM dashboard — UI shell and Next.js static assets.
100
+ # Redirect /litellm-ui/ → /ui/ because LiteLLM hardcodes all its
101
+ # internal routes as /ui/... (login, dashboard, etc.).
 
102
  location = /litellm-ui {
103
+ return 301 /ui/;
104
  }
 
105
  location /litellm-ui/ {
106
+ return 301 /ui/;
107
+ }
108
+
109
+ # The actual LiteLLM UI — all internal Next.js navigation goes here.
110
+ location /ui/ {
111
  proxy_pass http://127.0.0.1:8080/ui/;
112
  proxy_http_version 1.1;
113
  proxy_set_header Host $host;