I have a server I want to host Postgress for Better Auth.
The internet keeps telling me "Don't expose your DB to the internet", but my website is on Vercel; which is on the internet.
I could expose my Postgress LXC-container to the internet, but that seems like bad practice.
I could proxy the requests with something like Nginx, but I fail to see how that would improve the security, the requests are just proxied.
Something like PostgREST seems to securely expose the DB to the internet, but it dosen't seem like Better Auth would work with PostgREST
I just need a way to connect the DB on my own server to vercel for auth, but for some reason this seems very complicated. Or I'm just not getting something