Nginx rate limiting outside of container - any tips?

Exactly.. for start I have used template from the inside of the container and moved it outside. I don’t know if there is some recommended config for rate limiting outer nginx.
Emojis and avatars seem to be suitable for different limits than the rest of traffic.