You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/src/main/java/org/apache/cloudstack/network/lb/LoadBalancerConfigKey.java
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,9 @@ public enum LoadBalancerConfigKey {
61
61
62
62
LbServerMinConn(Category.LoadBalancer, "lb.server.minconn", "LB minimum connection per server", Long.class, "", "LB minimum connection per server, default is ''", Scope.LoadBalancerRule),
63
63
64
-
LbServerMaxQueue(Category.LoadBalancer, "lb.server.maxqueue", "Max conn wait in queue per server", Long.class, "<0 means unlimited in haproxy>", "Maximum number of connections which will wait in queue for this server, default is ''", Scope.LoadBalancerRule);
64
+
LbServerMaxQueue(Category.LoadBalancer, "lb.server.maxqueue", "Max conn wait in queue per server", Long.class, "<0 means unlimited in haproxy>", "Maximum number of connections which will wait in queue for this server, default is ''", Scope.LoadBalancerRule),
65
+
66
+
LbSslConfiguration(Category.LoadBalancer, "lb.ssl.configuration", "SSL configuration, could be 'none', 'old' or 'intermediate'", String.class, "none", "if 'none', no SSL configurations will be added, if 'old', refer to https://ssl-config.mozilla.org/#server=haproxy&server-version=1.8.17&config=old&openssl-version=1.0.2l if 'intermediate', refer to https://ssl-config.mozilla.org/#server=haproxy&server-version=1.8.17&config=intermediate&openssl-version=1.0.2l default value is 'none'", Scope.LoadBalancerRule);
65
67
66
68
publicstaticenumCategory {
67
69
General, Advanced, Stats, LoadBalancer
@@ -197,6 +199,13 @@ public static Pair<LoadBalancerConfigKey, String> validate(Scope scope, String k
197
199
returnnewPair<LoadBalancerConfigKey, String>(null, "Please enter either 'true' or 'false' for parameter " + key);
198
200
}
199
201
}
202
+
203
+
if(key.equals("lb.ssl.configuration")){
204
+
if ( !("none".equalsIgnoreCase(value) || "old".equalsIgnoreCase(value) || "intermediate".equalsIgnoreCase(value)) ){
205
+
returnnewPair<>(null, "Please enter either 'none', 'old' or 'intermediate' for parameter " + key);
0 commit comments