add facility for using nginx as a proxy