Updated nginx config with optimizations