How can I configure external nginx with discourse

You can do that with Discourse running inside docker too. Check this topic for example:

2 Likes