mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-15 09:09:05 +02:00
Add support for configuring load balancing strategy
This commit is contained in:
@@ -410,6 +410,13 @@ export async function generatePublicResourceBlueprintYaml(
|
||||
if (resource.tlsServerName) {
|
||||
resourceConfig["tls-server-name"] = resource.tlsServerName;
|
||||
}
|
||||
if (
|
||||
resource.loadBalancingStrategy &&
|
||||
resource.loadBalancingStrategy !== "wrr"
|
||||
) {
|
||||
resourceConfig["load-balancing-strategy"] =
|
||||
resource.loadBalancingStrategy;
|
||||
}
|
||||
if (resource.requestHeaders) {
|
||||
try {
|
||||
resourceConfig.requestHeaders = JSON.parse(resource.requestHeaders);
|
||||
|
||||
Reference in New Issue
Block a user