The nginx reverse proxy also displays the port, how to solve?

  docker, question

Nginx is a mirror image on doc, and blog.conf under conf.d is configured as follows

clipboard.png
However, the browser still displays the words 8080 port when accessing

clipboard.png

You need to add one

proxy_set_header X-Forwarded-Host $host;