modifications for deployment behind nginx proxy