How would I install this nginx bot blocker

Hello All. How would I go about adding this to my nginx config for mailinabox?

I believe that MiaB uses the certbot http-01 challenge method for Lets Encrypt. The ultimate bad bot blocker might not be compatible with this project.

See the following message on the link provided above:

PLEASE NOTE: For those using Let’s Encrypt SSL Certificates the preferred and 100% working method is to use the Webroot Authenticator Method. There appears to be some issues with people using the http challenge method but can confirm that webroot work flawlessly. We are uncertain at this point whether the http-01 challenge method is a certbot or nginx bug.