Differences between gateway and reverse proxy server with example in Ngnix?

https://en.wikipedia.org/wiki/Proxy_server#Types_of_proxy_servers says A proxy server may reside on the user’s local computer, or at any point between the user’s computer and destination servers on the Internet. A proxy server that passes unmodified requests and responses is usually called a gateway or sometimes a tunneling proxy. A forward proxy is an Internet-facing proxy used to retrieve…