Running the wordpress site on port 8080 behind the proxy running on port 80

I have a wordpress site running on port 8080 and lying behind the reverse proxy nginx server running on 80. In the wordpress settings, I've changed the URL of the site to "example.com:8080" and everything works fine. But the problem is that the URLs displayed on the publications contain an 8080 port number, which I do not want. How can I solve this problem?

I am dying to solve this problem. Note that if I change the URL of the site to "example.com", an overflow problem occurs. So please let me know how to solve this problem.