patch that allows us to use nginx as proxy