Skip to content

Instantly share code, notes, and snippets.

View gclitheroe's full-sized avatar

Geoff Clitheroe gclitheroe

  • Xero
  • New Zealand
View GitHub Profile
@gclitheroe
gclitheroe / varnish-ban-config
Created March 3, 2012 05:21
Varnish BAN config
if (req.request == "DELETE") {
if (!client.ip ~ purge) {
error 405 "Not allowed.";
}
if (req.http.X-BanExpression) {
ban(req.http.X-BanExpression);
}
else {
ban_url(req.url);
}
@gclitheroe
gclitheroe / mulejmsfailover.xml
Created January 14, 2012 01:19
Mule JMS failover
<jms:activemq-connector name="jmsVmDurable" specification="1.1"
brokerURL="failover:(${seiscomp.producer.amq.url})" clientId="${mule.serverId}.sc3.producer"
durable="true" persistentDelivery="true">
</jms:activemq-connector>
<jms:activemq-connector name="jmsVmNonDurable" specification="1.1"
brokerURL="failover:(${seiscomp.producer.amq.url})" clientId="${mule.serverId}.sc3.producer.nondurable"
durable="false" persistentDelivery="false">
</jms:activemq-connector>
@gclitheroe
gclitheroe / mulestarted.txt
Created January 14, 2012 00:50
Mule started
Mule: both applications are deployed
...
**********************************************************************
* - - + APPLICATION + - - * - - + STATUS + - - *
**********************************************************************
* muletimechatter-1.0-SNAPSHOT * DEPLOYED *
* default * DEPLOYED *
* seiscompproducer-1.0-SNAPSHOT * DEPLOYED *
**********************************************************************
<jms:activemq-connector name="jmsVmDurable" specification="1.1"
brokerURL="${seiscomp.producer.amq.url}" clientId="${mule.serverId}.sc3.producer"
durable="true" persistentDelivery="true">
</jms:activemq-connector>
<jms:activemq-connector name="jmsVmNonDurable" specification="1.1"
brokerURL="${seiscomp.producer.amq.url}" clientId="${mule.serverId}.sc3.producer.nondurable"
durable="false" persistentDelivery="false">
</jms:activemq-connector>