|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
[gatewiki-commits] SF.net SVN: gatewiki:[1754] trunk/cowRevision: 1754
http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1754&view=rev Author: ian_roberts Date: 2009-10-27 11:40:28 +0000 (Tue, 27 Oct 2009) Log Message: ----------- Added config option gate.cow.proxied, defaults to false but when set to true we call setForwarded(true) on the Jetty Connectors. This should make Jetty report the right server name and port when running behind mod_proxy. Modified Paths: -------------- trunk/cow/grails-app/conf/Config.groovy trunk/cow/scripts/_Events.groovy Modified: trunk/cow/grails-app/conf/Config.groovy =================================================================== --- trunk/cow/grails-app/conf/Config.groovy 2009-10-27 11:38:21 UTC (rev 1753) +++ trunk/cow/grails-app/conf/Config.groovy 2009-10-27 11:40:28 UTC (rev 1754) @@ -79,6 +79,7 @@ name.short = "CoW" name.long = "CoW, a Controllable Wiki" logo = "/_images/logo-colour.png" + proxied = false // are we running behind a web proxy? thirdparty = true // run any 3rd-party web-apps? sventon { run = false // run sventon? (set thirdparty above too) Modified: trunk/cow/scripts/_Events.groovy =================================================================== --- trunk/cow/scripts/_Events.groovy 2009-10-27 11:38:21 UTC (rev 1753) +++ trunk/cow/scripts/_Events.groovy 2009-10-27 11:40:28 UTC (rev 1754) @@ -62,6 +62,16 @@ // get config Map conf = ConfigurationHolder.config + if(conf.gate.cow.proxied) { + // set up the server for proxying + server.connectors.each { + if(it.respondsTo('setForwarded', boolean)) { + println "Setting connector ${it} to be forwarded" + it.setForwarded(true) + } + } + } + println "Setting gate.cow.cowrc.d=${conf.gate.cow.data}" System.setProperty("gate.cow.cowrc.d", conf.gate.cow.data) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ gatewiki-commits mailing list gatewiki-commits@... https://lists.sourceforge.net/lists/listinfo/gatewiki-commits |
| Free embeddable forum powered by Nabble | Forum Help |