Nginx and IPFS Config Files

Does anyone have any config files for using IPFS with Nginx, especially for ports 5001 and 8080 with the listening defined and any other aspects? I am trying to implement a solidity contract to update IPFS and I have a lot of port issues and conflicts with node.

I more research and testing and the basic issue is port clashing. Was there any resolution to this? I saw this thread -

8080 is used by nginx and that causes a clash.

See the ~/.ipfs/config file. Ports can be changed there.