X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=haproxy%2Fhaproxy.cfg;h=058e6b5612fe179973e9fd6db54e171ed01f918e;hb=refs%2Fchanges%2F53%2F67953%2F1;hp=8a4001e9eab2d96bfb5eb0e14653c112c825ca84;hpb=fb417886112d22b8261de37c5eb2a030d6b4c1db;p=aai%2Ftest-config.git diff --git a/haproxy/haproxy.cfg b/haproxy/haproxy.cfg index 8a4001e..058e6b5 100644 --- a/haproxy/haproxy.cfg +++ b/haproxy/haproxy.cfg @@ -83,10 +83,16 @@ frontend IST_8443 acl is_Port_8446_generic path_reg -i ^/aai/v[0-9]+/search/generic-query$ acl is_Port_8446_nodes path_reg -i ^/aai/v[0-9]+/search/nodes-query$ acl is_Port_8446_version path_reg -i ^/aai/v[0-9]+/query$ + acl is_named-query path_beg -i /aai/search/named-query acl is_search-model path_beg -i /aai/search/model + + acl is_dbquery path_reg -i ^/aai/v[0-9]+/dbquery$ + use_backend IST_AAI_8446 if is_Port_8446_generic or is_Port_8446_nodes or is_Port_8446_version or is_named-query or is_search-model + use_backend IST_AAI_8449 if is_dbquery + default_backend IST_Default_8447 @@ -110,6 +116,12 @@ backend IST_AAI_8446 http-response set-header Strict-Transport-Security max-age=16000000;\ includeSubDomains;\ preload; server aai-traversal.api.simpledemo.onap.org aai-traversal.api.simpledemo.onap.org:8446 port 8446 ssl verify none +backend IST_AAI_8449 + balance roundrobin + http-request set-header X-Forwarded-Port %[src_port] + http-response set-header Strict-Transport-Security max-age=16000000;\ includeSubDomains;\ preload; + server aai-graphadmin.api.simpledemo.onap.org aai-graphadmin.api.simpledemo.onap.org:8449 port 8449 ssl verify none + listen IST_AAI_STATS mode http bind *:8080