Railway

Deploy PrivaPaid

A template for PrivaPaid the paywall

Deploy PrivaPaid

Just deployed

/var/lib/postgresql/data

Deploy and Host PrivaPaid on Railway

PrivaPaid is an open-source, encryption-first content platform for selling media with Bitcoin Lightning payments. Video, audio, articles, photos, podcasts: everything encrypted at rest with AES-256-GCM, paid via SatsRail. No payment processor accounts, no chargebacks, no middlemen. White-label with your name, colors, and domain.

About Hosting PrivaPaid

This template deploys PrivaPaid alongside a managed Postgres database. The Next.js app builds from the Dockerfile, runs Prisma migrations on boot, and serves both the admin dashboard and the public storefront. Encryption keys and session secrets are generated per-deploy so each instance is cryptographically isolated. You connect a SatsRail merchant account through the setup wizard, create channels, and upload media. Buyers pay Lightning invoices and decrypt content in their browser after payment. The server never decrypts content for a buyer. Add a custom domain in Railway's networking settings, and SSL is handled automatically.

Common Use Cases

  • Independent creator monetization. Sell videos, articles, podcasts, or photo packs directly to your audience with Bitcoin Lightning. No payment processor accounts, no platform cuts.
  • Membership channels. Bundle media into channels with subscription-style access. Macaroons let buyers return without re-paying until access expires.
  • Premium podcast feeds. Gate audio behind Lightning payments. Macaroon-based access means subscribers return without re-paying until their window expires.

Dependencies for PrivaPaid Hosting

  • SatsRail.com — merchant account for Lightning payment processing, invoice generation, and encryption key delivery. The PrivaPaid instance authenticates against SatsRail with an sk_live_ or sk_test_ API key set through the setup wizard after deploy.
  • Lightning wallet — Alby Hub or any compatible Lightning wallet, connected through your SatsRail merchant dashboard. SatsRail routes invoice payments to the wallet you connect; PrivaPaid never touches wallet credentials directly.

Deployment Dependencies

Implementation Details

[Include any code snippets or implementation details. This section is optional. Exclude if nothing to add.]

Why Deploy PrivaPaid on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying PrivaPaid on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
NEW
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta