[Suggestion] Add upstream param to listen statement

Manuel Valente manuel.valente at gmail.com
Wed May 23 13:29:23 UTC 2012


Hi,

It would be nice to be able to reject all incoming requests to unicorn 
if they do not originate from our upstream http server.

An additional parameter to the listen statement is perhaps the best way 
to achieve this :

server.listen(addr, :tries => -1, :delay => 5, :backlog => 128, 
:upstream => '10.0.0.1')

This param could be a string or an array of IP addresses.

I read the documentation but did not find any way to achieve this.

Best regards,

-- 
Manuel Valente
prixing.fr



More information about the mongrel-unicorn mailing list