Optimized nginx configuration