I have three machines
- My Machine: localhost
- Azure VM with IP: x.x.x.x
- Azure DB instance with domain: db-backup.postgres.database.azure.com
The Azure DB has firewalls and only accepts connection from the Azure VM IP, localhost can connect to the VM using SSH.
Now I want to connect from localhost to DB instance directly through the VM, I managed to do that with PGAdmin Desktop interface using SSH tunneling, how can I do it with TypeOrm and nest.js?