Self-Hosting
Deploy VelvetRope on your own infrastructure.
Quick Deploy to Fly.io
# Install Fly CLI curl -L https://fly.io/install.sh | sh # Launch cd bouncer fly launch # Set secrets fly secrets set SECRET_KEY_BASE=$(mix phx.gen.secret) fly secrets set STRIPE_SECRET_KEY=sk_live_xxx # Deploy fly deploy
Docker
# Build docker build -t velvetrope . # Run docker run -p 4000:4000 \ -e DATABASE_URL=ecto://user:pass@db/bouncer \ -e SECRET_KEY_BASE=your-secret \ velvetrope
Environment Variables
| Variable | Required | Description |
|---|---|---|
| DATABASE_URL | Yes | PostgreSQL connection string |
| SECRET_KEY_BASE | Yes | 64+ char encryption key |
| STRIPE_SECRET_KEY | For Skip Pass | Stripe API key |
| PHX_HOST | No | Your domain name |