Instructions & configuration options for self-hosting Nango.
.env
file or directly on Heroku/Render):
<INSTANCE-URL>/oauth/callback
.
NANGO_SERVER_URL
server environment variable accordingly (in the .env
file or directly on
Heroku/Render).http://localhost:3009
.
NANGO_PUBLIC_CONNECT_URL
server environment variable accordingly (in the .env
file or directly on
Heroku/Render)..env
file):
pool_mode=transaction
. Please use a direct database connection or configure the pooler to use a different mode.RECORDS_DATABASE_URL
env var. Ex:
NANGO_ENCRYPTION_KEY
environment variable to the generated key:
/
path by default for use by @nangohq/frontend
during the login flow.
If you want more isolation between websockets and the dashboard (also served from /
), then you can set the NANGO_SERVER_WEBSOCKETS_PATH
environment variable to serve websockets from a different path:
websocketsPath
parameter when initializing the Nango
object in the @nangohq/frontend
SDK:
TELEMETRY=false
(in the
.env
file or directly on Heroku/Render).
NANGO_LOGS_ENABLED=true
and add the appropriate values in NANGO_LOGS_ES_*
docker-compose.yml
(GitHub) and run docker-compose up
NANGO_LOGS_ENABLED
is false
, all the logs are sent to stdout so you can always find everything in your hosts logs UI.