This repository demonstrates how to deploy the Twingate Zero Trust solution on the Render cloud. By using Twingate, you'll be able to directly access private resources that aren't exposed to the public web, such as Render Private Services or Render PostgreSQL instances.
Twingate themselves have created an easy video walkthrough of deploying a Twingate connector into Render that's worth checking out if you'd like more information.
- Log into your Twingate admin panel.
- Create a network (Network > Remote Networks (right sidebar) > Add) to continue. In the "type" dropdown select "Other" and name it
Render
(or whatever is meaningful to you). - Click Deploy Connector in the right sidebar to...deploy the connector!
- Select Docker, and leave other settings as default.
- Click Generate Tokens, which will prompt you to re-authenticate your Twingate account.
- You'll now have an
Access Token
and aRefresh Token
. Keep these handy.
- Let's launch this into Render!
- One note: for business continuity and source code control purposes, you might want to fork this repository, in which case you'd want to go to Render Deploy instead and specify your forked repo.
- You'll be asked to input a few things:
- Your Twingate account URL, e.g. https://renderexamples.twingate.com
- Your access token, from the above step
- Your refresh token, from the above step
- Now, once this is live, you'll have a Twingate connector and two services. Connect to Twingate now by following the instructions in the Twingate docs.
- In the Render dashboard, navigate to the service you'd like to expose via Twingate.
- Beneath the name of the service, you should see Service Address, which will be something like
twingate-private-service-a1b2:80
; click the Copy button next to this. - Open a new tab in your browser, type
http://
, and paste in the address.
- Beneath the name of the service, you should see Service Address, which will be something like
- Similarly, you can connect to a Render PostgreSQL instance.
- On the PostgreSQL service page, under Connections, you'll find the Hostname for the PostgreSQL instance.