1) For the eye position, since you're dealing specifically with directional lights, you can make a safe assumption that the light source is extremely far away (similar to the sun). Therefore, depending on what your direction is, you can position the eye such that it is far away.

2) For the left, right, top, bottom, near, far variables, it really depends a whole lot on your scene. Try different parameters, and keep playing around; there will never be a single set of parameters that suits all scenes for shadow mapping, which is why it's pretty troublesome to implement and perfect. Keep tweaking the parameters for the orthographic projection matrix to see what suits your scene.

There is one way to compute the orthographic projection matrix based on your camera's view frustum, which you could try. You'd have to compute the matrix every frame, however. ThinMatrix does this as well in his video tutorials, but his code is more than a little messy, and I don't really follow his tutorials, so his code was pretty difficult for me to read, but you could give that a shot, too. Here's a great explanation of how you can do this, by theagentd:

1. Compute the frustum corners' positions in world space, then transform them to light space. The easiest way of doing this is to compute the inverse of the camera's view-projection-matrix and multiply the vectors (+-1, +-1, +-1) (a total of 8 different combinations to get all 8 corners) and then transforming them by the inverse view-projection-matrix to get the world position. Then just multiply those 8 world space positions with the light view matrix we computed in step 1.

2. At this point you can compute the 3D bounds in view space by simply calculating the min and max of the 8 vectors' components and pass those into an ortho() function directly like this: ortho(minX, maxX, minY, maxY, minZ, maxZ). However, there are a number of quirks. You most likely want to make the width and height of the orthographic matrix the same so you don't get stretching (width=maxX-minX, height=maxY-minY). You also probably want to push the near plane out as well to capture things that are potentially outside the camera frustum but still casting shadows on the camera frustum.

If you're still having trouble, I suggest following learnopengl.com 's great tutorial; or maybe ThinMatrix's 2-part tutorial on shadow mapping. If you don't like the quality of your shadows (resolution, etc.) try using Cascaded Shadow Mapping.

Have fun!