fix nginx auth issues