pulso Docs

Self-hosting

View as Markdown

Configuration

Pulso is configured through environment variables only. The web and jobs containers take the same ones.

Required#

Variable Value
URL_HOST The host people open Pulso on, such as pulso.example.com. Links in emails are built with it.
DATABASE_URL The PostgreSQL connection URL.
SECRET_KEY_BASE A long random string. Generate it with bin/rails secret.
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY, ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY, ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT The keys that encrypt data source credentials, signal data and other sensitive columns. Generate them once with bin/rails db:encryption:init.
MAIL_SENDER, SMTP_ADDRESS, SMTP_PORT, SMTP_USER_NAME, SMTP_PASSWORD The address Pulso sends from and your SMTP server. Invitations, password resets and notifications go by email.
STORAGE_PROVIDER local to keep files on disk under /rails/storage (mount a volume there), or s3_compatible for a bucket.

With STORAGE_PROVIDER=s3_compatible, also set BUCKET_NAME, AWS_ENDPOINT_URL_S3, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

If DATABASE_URL goes through a connection pooler such as PgBouncer, set DATABASE_DIRECT_URL to a direct connection as well: migrations run on it.

Optional#

Variable What it does
DISABLE_USER_SIGNUP true closes the sign-up page, so people join only when invited.
PUBLIC_URL_HOST A second host, reachable from the internet, that serves only what outside callers need: data source webhooks, forms and Slack’s events. Everything else on it answers 404.
API_HOST, FORMS_HOST, HOOKS_HOST A host of its own for the API and MCP server, for the forms anyone can open, or for webhooks and Slack’s events. Each serves only that, which then stops being served on URL_HOST, except forms for members. FORMS_HOST and HOOKS_HOST take the place of PUBLIC_URL_HOST.
SLACK_CLIENT_ID, SLACK_CLIENT_SECRET, SLACK_SIGNING_SECRET Turn on the Slack integration.
SLACK_APP_TOKEN An app-level token (xapp-…, scope connections:write). Slack then delivers events over a connection Pulso opens, so Slack never has to reach your network.
TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM_PHONE Turn on SMS for every account through one Twilio. See SMS.
TWILIO_VERIFY_SERVICE_SID A Twilio Verify service, with the two credentials above, to verify members’ own phone numbers. See SMS.
OUTGOING_WEBHOOKS_ALLOW_PRIVATE_HOSTS true lets outgoing webhooks and HTTP request steps call hosts on private addresses, such as your internal APIs. They are refused by default.
RAILS_MAX_THREADS Threads per web process, 3 by default.
SUPPORT_EMAIL The address the app offers for help.

SMS#

Each account can connect its own Twilio under Settings → Account → SMS. On your own install, you can instead set TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN and TWILIO_FROM_PHONE once. Every account without its own Twilio then sends through them: SMS steps and the codes that verify address book phones. TWILIO_FROM_PHONE is a number of that Twilio account, such as +34600000000, or an alphanumeric sender ID, such as Acme. An account that connects its own Twilio uses that one instead.

Members verify their own phone number with a code. Pulso sends that code through the same Twilio, unless you set TWILIO_VERIFY_SERVICE_SID. With it, a Twilio Verify service sends and checks the code. Verify picks a sender for each country and blocks fraudulent traffic, but Twilio charges for each verification. Without either, only members of accounts that connected their own Twilio can add a phone number.