This is a modified version of
TimoWilhelm/local-neon-http-proxy ↗used forAesterisk ↗development but built with portability in mind, and thus can be used for whatever project you want.
The Neon Proxy ↗
is a way to use a regular PostgreSQL ↗ database
hosted by yourself (including locally) with Neon's Serverless Postgres packages and
solutions (such as neondatabase/serverless ↗).
This is intended as a solution to fully local development purposes when building for Serverless Postgres by Neon, and has not been tested for production reasons.
-
Pull the Docker image at
ghcr.io/aesterisk/neon-proxy. -
Add an environment variable for your
PostgreSQLconnection string:PG_CONNECTION_STRING=postgresql://user:password@host:port/database.
-
Bind your SSL certificate and key:
./example.com.pem:/etc/neon/neon.pem./example.com.key:/etc/neon/neon.key
-
Profit!
As this is just a wrapper Docker image, this is licensed the same as the actual code in
neondatabase/neon ↗, namely Apache-2.0 (instead of aesterisk/aesterisk's AGPL-3.0).
See LICENSE ↗ for a copy.