Geoblocking using Nginx of the container?

After fast googling it looks like I need to use templates, as suggested, and/or a plugin. Otherwise everything will be overwritten.

Or I have to use a reverse proxy outside the container.

Right?