mirror of
https://github.com/tencentmusic/cube-studio.git
synced 2024-11-27 05:33:10 +08:00
fix vs proxy host
This commit is contained in:
parent
cfee5a91d8
commit
01d5fb603e
@ -716,7 +716,7 @@ HELP_URL={
|
||||
"service":"https://github.com/tencentmusic/cube-studio/tree/master/docs/example",
|
||||
"inferenceservice":"https://github.com/tencentmusic/cube-studio/tree/master/docs/example",
|
||||
"run":"https://github.com/tencentmusic/cube-studio/tree/master/docs/example",
|
||||
"docker":"https://github.com/tencentmusic/cube-studio/tree/master/docs/example"
|
||||
"docker":"https://github.com/tencentmusic/cube-studio/tree/master/images"
|
||||
}
|
||||
|
||||
# 不使用模板中定义的镜像而直接使用用户镜像的模板名称
|
||||
|
@ -716,7 +716,7 @@ HELP_URL={
|
||||
"service":"https://github.com/tencentmusic/cube-studio/tree/master/docs/example",
|
||||
"inferenceservice":"https://github.com/tencentmusic/cube-studio/tree/master/docs/example",
|
||||
"run":"https://github.com/tencentmusic/cube-studio/tree/master/docs/example",
|
||||
"docker":"https://github.com/tencentmusic/cube-studio/tree/master/docs/example"
|
||||
"docker":"https://github.com/tencentmusic/cube-studio/tree/master/images"
|
||||
}
|
||||
|
||||
# 不使用模板中定义的镜像而直接使用用户镜像的模板名称
|
||||
|
@ -517,7 +517,8 @@ class NNI_ModelView_Base():
|
||||
host = nni.project.cluster.get('NNI_DOMAIN',request.host)
|
||||
if not host:
|
||||
host=request.host
|
||||
|
||||
if ':' in host:
|
||||
host = host[:host.rindex(':')] # 如果捕获到端口号,要去掉
|
||||
vs_json = {
|
||||
"apiVersion": "networking.istio.io/v1alpha3",
|
||||
"kind": "VirtualService",
|
||||
|
@ -375,7 +375,8 @@ class Notebook_ModelView_Base():
|
||||
host = notebook.project.cluster.get('JUPYTER_DOMAIN',request.host)
|
||||
if not host:
|
||||
host=request.host
|
||||
|
||||
if ':' in host:
|
||||
host = host[:host.rindex(':')] # 如果捕获到端口号,要去掉
|
||||
crd_json = {
|
||||
"apiVersion": "networking.istio.io/v1alpha3",
|
||||
"kind": "VirtualService",
|
||||
|
Loading…
Reference in New Issue
Block a user