mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
add ability to specify default host_name
This commit is contained in:
parent
dbc4b2d68b
commit
e0cbcc43f6
2 changed files with 12 additions and 0 deletions
|
|
@ -33,6 +33,8 @@ properties:
|
|||
enum:
|
||||
- http
|
||||
- https
|
||||
http_host:
|
||||
type: string
|
||||
additionalProperties: false
|
||||
required:
|
||||
- endpoint
|
||||
|
|
@ -66,6 +68,8 @@ properties:
|
|||
enum:
|
||||
- http
|
||||
- https
|
||||
http_host:
|
||||
type: string
|
||||
additionalProperties: false
|
||||
required:
|
||||
- name
|
||||
|
|
|
|||
|
|
@ -537,7 +537,11 @@ static_resources:
|
|||
socket_address:
|
||||
address: {{ cluster.endpoint }}
|
||||
port_value: {{ cluster.port }}
|
||||
{% if cluster.http_host %}
|
||||
hostname: {{ cluster.http_host }}
|
||||
{% else %}
|
||||
hostname: {{ cluster.endpoint }}
|
||||
{% endif %}
|
||||
{% if cluster.protocol == "https" %}
|
||||
transport_socket:
|
||||
name: envoy.transport_sockets.tls
|
||||
|
|
@ -566,7 +570,11 @@ static_resources:
|
|||
socket_address:
|
||||
address: {{ local_llm_provider.endpoint }}
|
||||
port_value: {{ local_llm_provider.port }}
|
||||
{% if local_llm_provider.http_host %}
|
||||
hostname: {{ local_llm_provider.http_host }}
|
||||
{% else %}
|
||||
hostname: {{ local_llm_provider.endpoint }}
|
||||
{% endif %}
|
||||
{% if local_llm_provider.protocol == "https" %}
|
||||
transport_socket:
|
||||
name: envoy.transport_sockets.tls
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue