|
@@ -7,6 +7,11 @@ server {
|
|
|
try_files $uri $uri/ /index.html;
|
|
try_files $uri $uri/ /index.html;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ # SSO 回调页面由前端 SPA 处理,不代理到后端
|
|
|
|
|
+ location /auth/callback {
|
|
|
|
|
+ try_files $uri /index.html;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
location ~ ^/(v1|v2|auth|version|proxy|update|cli|grafana) {
|
|
location ~ ^/(v1|v2|auth|version|proxy|update|cli|grafana) {
|
|
|
proxy_pass ${BACKEND_URL};
|
|
proxy_pass ${BACKEND_URL};
|
|
|
proxy_set_header Host $host;
|
|
proxy_set_header Host $host;
|