[Resin-interest] Using gradle Spring Boot to deploy a WAR in resin

2015-01-29 Thread Rick Mann
I'm just getting started moving my ant-based Spring 3/Servlet 3 app to gradle. 
I'm starting from scratch. The getting started guides all show using an 
embedded Tomcat, but I want to deploy a webapp in my resin instance. This page 
describes how to do that:


http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#build-tool-plugins-gradle-packaging

Unfortunately, it uses a Tomcat-specific thing, and I don't see how to modify 
that for Resin.

To go a bit further: I don't actually want a WAR file. I want the unpackaged 
directory structure, and I'll point my resin at it.

Does anyone know what the minimal build.gradle file looks like to meet all 
those needs?

Thanks!


-- 
Rick Mann
rm...@latencyzero.com



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Network based security behind Apache (X-Forwarded-For)

2015-01-29 Thread Mattias Jiderhamn
Hi list. What options do I have if I want to use IP based security 
behind an Apache proxy?


I want to use ip-constraint or resin:IfNetwork, but 
request.getRemoteAddr() will always be the IP of the proxy, and the real 
IP is in X-Forwarded-For header.
It seems I cannot put a Servlet filter in front of Resins 
SecurityFilterChain (in which I could have wrapped the request and 
overriden getRemoteAddr())?
Can I add custom com.caucho.rewrite.RequestPredicate implementations to 
the SecurityFilterChain somehow...???


--

  /Mattias

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest