flowdock/oulu — pull request #18 by tsilen (2012-07-05 13:50:08+00:00)
Title: Stunnel proxy support

This adds support for proxy protocol used by e.g. stunnel and haproxy to relay original client ip information to application behind them (http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt)

* Environment variable EXPECT_PROXY_PROTOCOL to indicate that the proxy header is expected. If set, connections should only be allowed through stunnel/haproxy with proxy protocol enabled.

* Log new connections and client ip/port on connect and disconnect