How do you protect Nginx?

Hello,
Other than Nginx security settings, how do you protect the Nginx container? I want to use Fail2Ban, but the Nginx logs are in the container. What’s the solution?

Thank you.

Hello,
No idea?

Thank you.