Reverse proxy with webserver

hello guys, i just installed erpnext on a VPS with a ip ex: 104.107.108.97 but i also have a webserver with my main domain ex: mycompany.com and ip 104.107.108.98, so how to properly set my mycompany.com to got directly to my erpnext website vps server with 104.107.108.97 ? thanks in advanced.

You own the domain mycompany.com so add a DNS record of erpnext.mycompnay.com that points direct to your instance server. set up a site erpnext.mycompnay.com using bench.

but in this way, my website using erpnext website settings will be only accessible @ erpnext.mycompany.com, i want my erpnext generated website be accessible as main domain mycompany.com