Spaces:
Paused
Paused
Automated deployment update from ML build
Browse files
config/nginx.conf.template
CHANGED
|
@@ -97,14 +97,17 @@ http {
|
|
| 97 |
}
|
| 98 |
|
| 99 |
# LiteLLM dashboard — UI shell and Next.js static assets.
|
| 100 |
-
#
|
| 101 |
-
#
|
| 102 |
-
# must also be proxied to the litellm process on :8080.
|
| 103 |
location = /litellm-ui {
|
| 104 |
-
return 301 /
|
| 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;
|