mirror of
https://github.com/tencentmusic/cube-studio.git
synced 2024-11-21 01:16:33 +08:00
update service proxy ip
This commit is contained in:
parent
2df52f94a0
commit
646d562ef0
@ -263,7 +263,7 @@ class InferenceService(Model,AuditMixinNullable,MyappModelBase,service_common):
|
||||
|
||||
@property
|
||||
def inference_host_url(self):
|
||||
url = "http://" + self.name + "." + self.project.cluster.get('SERVICE_DOMAIN',conf.get('SERVICE_DOMAIN'))
|
||||
url = "http://" + self.name + "." + self.project.cluster.get('SERVICE_DOMAIN','')
|
||||
if self.host:
|
||||
if 'http://' in self.host or 'https://' in self.host:
|
||||
url = self.host
|
||||
|
@ -872,7 +872,7 @@ output %s
|
||||
selector=labels
|
||||
)
|
||||
# 如果域名配置的gateway,就用这个
|
||||
host = service.name+"."+ service.project.cluster.get('SERVICE_DOMAIN',conf.get('SERVICE_DOMAIN'))
|
||||
host = service.name+"."+ service.project.cluster.get('SERVICE_DOMAIN','')
|
||||
|
||||
if service.host:
|
||||
host=service.host.replace('http://','').replace('https://','').strip()
|
||||
|
Loading…
Reference in New Issue
Block a user