Use app-level configuration for is_behind_proxy:

This closes issue #730.
reflect change
Merge branch 'fix/gh-730'