Analog satisfy any nginx in caddy

Sorry, I copied the link incorrectly)
A similar problem is described here.

And as I understand it here:

I understand at the moment it is impossible that
basicauth only worked for not allowed ip / subnets