Self-hosted
Your server, your data, no invoice from us.
Install
Three commands and a few secrets.
You need a Linux host with Docker and Compose v2. A small VM is enough for a typical portfolio.
- 1. Clone the repository and copy
.env.exampleto.env. - 2. Generate the secrets and set your public URL.
- 3. Start it. The schema is created on first start and kept in sync on every start after.
- 4. Sign up. The first account on an install becomes its operator.
Full guide, including backups, updates and replicas: docs/self-hosting.md in the repository.
git clone <repository-url> pricenot
cd pricenot
cp .env.example .env
# in .env
POSTGRES_PASSWORD=$(openssl rand -hex 16)
AUTH_SECRET=$(openssl rand -base64 36)
ENCRYPTION_KEY=$(openssl rand -hex 32)
CRON_SECRET=$(openssl rand -hex 24)
APP_URL=https://pricing.example.com
docker compose up -d --buildAirbnb
The one thing we cannot ship in the box.
Airbnb grants API access only to certified software partners. Each partner gets its own application credentials, tied to its own agreement with Airbnb. PriceNot Cloud cannot lend its application to other installs.
So a self-hosted install has two modes. Out of the box it reads calendars through iCal and gives you rates as CSV. If you hold a certified Airbnb application, set its client ID and secret and you get two-way sync.
The Airbnb adapter is a single file, lib/channels/airbnb.ts, with overridable endpoint URLs. Expect to adjust its field mapping to the API version your certification covers.
| Capability | iCal only | With your Airbnb application |
|---|---|---|
| Read availability and blocked dates | ||
| Recommended rates and min stays for 365 nights | ||
| Export rates as CSV | ||
| Import listings from your Airbnb account | ||
| Push rates and min stays to Airbnb on a schedule |
iCal carries dates but no prices, so revenue figures for iCal-only listings are estimated from your calendar rates. Vrbo and Booking.com connect through iCal in both modes.
Configuration
Environment variables
Install-level settings come from the environment. Workspace settings such as the Apify token, sync schedule and notifications are set in the app.
| Variable | Needed | What it does |
|---|---|---|
| POSTGRES_PASSWORD | yes | Password for the bundled Postgres. Compose builds DATABASE_URL from it. |
| AUTH_SECRET | yes | Signs sessions. openssl rand -base64 36 |
| ENCRYPTION_KEY | yes | Encrypts stored tokens with AES-256-GCM. openssl rand -hex 32. Back it up. |
| APP_URL | recommended | Public URL of the install, used in emails and OAuth redirects. |
| CRON_SECRET | optional | Bearer secret for /api/cron/tick, an external scheduler heartbeat. |
| AIRBNB_CLIENT_ID, AIRBNB_CLIENT_SECRET | optional | Your certified Airbnb application. Enables two-way sync. |
| APIFY_ACTOR_AIRBNB, _BOOKING, _VRBO | optional | Replace the default scraper actors. |
| MAIL_WEBHOOK_URL | optional | Where password-reset and invite mail is POSTed. Without it, links go to the log. |
| WORKER_DISABLED | optional | Set to 1 on web-only replicas. |
Market data
Each workspace saves its own Apify token in Settings. Apify bills that account. Metered billing at cost plus 10% is a Cloud feature and is not offered on self-hosted installs.
Background jobs
Calendar syncs, repricing, Apify polling and price pushes run in a worker inside the app process. Several replicas can run it at once; jobs are claimed with row locks.
License
AGPL-3.0. Running it for your own business asks nothing of you. If you modify it and let others use your version over a network, you offer them your source. Details.
Price your first listing tonight.
Add a listing with its calendar link and get 365 nights of recommended rates, each with the reasoning attached. Or load the sample portfolio and look around first.