Update haproxy for graphadmin
[aai/test-config.git] / haproxy / haproxy.cfg
index 8a4001e..058e6b5 100644 (file)
@@ -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