cloudflare / argo-tunnel-examples

209 stars 78 forks source link

add zero trust postgrest worker example #9

Closed eidam closed 3 years ago

eidam commented 3 years ago

Hey!

I wanted to write a guide to run and proxy postgres(t) with Cloudflare tunnel for a while now, then realized I can just take the already existing one written by you and just add the rest.

Resources being provisioned

The plan was also to use WARP to demonstrate connect to the instance's private IP directly, but it might be too much. I can perhaps prepare a different Terraform example just for that.

eidam commented 3 years ago

Thanks for the review! I am also adding a bonus terraform file to provision this thing on any host, namely RaspberryPi in my case, which will be ready in half an hour. 🙂

eidam commented 3 years ago

Tested couple of VMs and all is working great :) My current deployment example:

viggy28 commented 3 years ago

I wrote something similar.

In case if it helps anyone to picture how all these work together https://viggy28.github.io/til/2021-04-18T20-44-40-accessing-postgres-from-cloudflare-workers.html