cleanup and adapt nginx