Last active
December 22, 2015 14:48
-
-
Save amusarra/6488216 to your computer and use it in GitHub Desktop.
Configuration WSO2 ESB SugarCRM Balanced Proxy Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<proxy xmlns="http://ws.apache.org/ns/synapse" | |
name="SugarCRMProxyFilteredByNetLB" | |
transports="https,http" | |
statistics="enable" | |
trace="enable" | |
startOnLoad="true"> | |
<target faultSequence="errorHandler"> | |
<inSequence> | |
<property name="client-host" expression="get-property('axis2', 'REMOTE_HOST')"/> | |
<property name="client-add" expression="get-property('axis2', 'REMOTE_ADDR')"/> | |
<log level="custom"> | |
<property name="REMOTE_ADDR :" expression="get-property('client-add')"/> | |
<property name="REMOTE_HOST:" expression="get-property('client-host')"/> | |
</log> | |
<filter source="get-property('client-add')" | |
regex="(10\.1\.1\.(1[0-4]|[1-9]))|(10\.1\.2\.(1[0-4]|[1-9]))|(10\.1\.3\.(1[0-4]|[1-9]))|(192\.168\.1\.(25[0-4]|2[0-4][0-9]|1[0-9]{2}|0[1-9][0-9]|00[1-9]))"> | |
<then> | |
<send> | |
<endpoint> | |
<loadbalance algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin"> | |
<endpoint name="CRMNODE0"> | |
<address uri="http://crm-node0-shiruslabs.dontesta.it:8888/sugarcrm_dev_WebServices/service/v4/soap.php"/> | |
</endpoint> | |
<endpoint name="CRMNODE1"> | |
<address uri="http://crm-node1-shiruslabs.dontesta.it:8888/sugarcrm_dev_WebServices/service/v4/soap.php"/> | |
</endpoint> | |
<endpoint name="CRMNODE2"> | |
<address uri="http://crm-node2-shiruslabs.dontesta.it:8888/sugarcrm_dev_WebServices/service/v4/soap.php"/> | |
</endpoint> | |
</loadbalance> | |
<session type="http"/> | |
</endpoint> | |
</send> | |
</then> | |
<else> | |
<log> | |
<property name="FORBIDDEN" value="Access Forbidden"/> | |
</log> | |
<sequence key="SugarCRMProxyLBAccessForbidden"/> | |
</else> | |
</filter> | |
<drop/> | |
</inSequence> | |
</target> | |
<publishWSDL key="gov:/trunk/services/sugarcrm.repository.components.dontesta.it/SugarCRMv4WSDL"/> | |
<description/> | |
</proxy> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment