We are building some custom plugins and using them with Kong. So far, testing via Pongo has been working successfully, but in one case we need to use methods like
kong.client.get_forwarded_ip() which requires Nginx configuration directives like
trusted_ips to be set correctly before running our integration tests.
In the real runtime environment this is no problem, but within the testing context of Pongo it is hard to understand how to insert these custom directives into nginx.conf. It appears that Pongo populates the nginx.conf from a template inside the container image, and does render the template somehow, but it is unclear (and seemingly undocumented) how to add arbitrary other directives to the configuration as I mentioned above.