This is a self-hosted connector for PostPipe built in Python (FastAPI). It acts as a secure bridge between PostPipe's Ingest API and your private database.
pip install -r requirements.txtCopy .env.example to .env and fill in your details:
POSTPIPE_CONNECTOR_ID=pp_conn_...
JWT_SECRET=... # Keep this secret!
DB_TYPE=mongodb # mongodb | postgresuvicorn app.main:app --reload --port 3000The server will listen on port 3000.
Endpoint: POST http://localhost:3000/postpipe/ingest
The connector is configured to be deployed to Vercel as a Serverless Function out-of-the-box using the provided vercel.json.
-
Install Vercel CLI (if not already installed):
npm i -g vercel
-
Deploy via Vercel CLI: Navigate to the
static-system/my-connector-fastapidirectory and run:vercel
Follow the prompts to link the project and deploy it.
-
Configure Environment Variables: In your Vercel Dashboard (Project Settings > Environment Variables), add the required environment variables:
POSTPIPE_CONNECTOR_IDJWT_SECRETDB_TYPE(mongodborpostgres)DATABASE_URL/MONGODB_URI(depending on your database type)- Any other env variables used by your selected database adapter.
-
Deploy to Production: Once configured, deploy to production:
vercel --prod
Alternatively, you can import the repository directly into Vercel via the dashboard. Make sure to set the Root Directory to static-system/my-connector-fastapi.