Hello. I’m trying to set up a sveltekit website with a postgres database. The database is hosted on a private Ubuntu VPS with no public IP. I have wireguard installed to make a VPN connection possible, so I can securely access the data from the database between that VPS and the website’s server. I was wondering if it’s possible to connect a netlify website to a VPN.
No. Netlify Functions and Edge Functions run on dymaic IPs, so it’s not possible to either restrict the connection to a set of static IPs or connect to a VPN like you propose.