Port changing for reverse proxy

Hello, tell me please how to properly configure the config for the situation. I have a reverse_proxy configured based on Nginx for the domain wg.example.com, which proxying 127.0.0.1:51821.
What parameters in the configuration file need to be changed in order to:

  1. SSL has been completely disabled
  2. firezone should be available at: http://127.0.0.1:51821