Skip to Content
Getting StartedEnvironment Variables

Environment Variables

Every AppConfig value is backed by an env var with a default, and a preset can override the env-built value (see Configuration Resolution). Four variables have no usable default and the process asserts them at start: REPLIERS_API_KEY, MAPBOX_ACCESS_TOKEN, JWT_PRIVATE_KEY, JWT_PUBLIC_KEY (startup prerequisites). Grouped by prefix; defaults shown where they matter. The authoritative list lives in the repository README and src/config.ts. Secrets belong in the process environment only (Deployment).

Application (APP_)

VariableDefaultPurpose
APP_SETTINGS_PRESET—Settings preset name (see Configuration Model)
APP_ENVIRONMENTlocalhostEnvironment label. The GOOGLE_CREDENTIALS assert reads the raw variable, so anything but the literal localhost — including unset — makes it mandatory; DEBUG_AUTH_OTP_EXPOSE_CODE is refused when it contains prod (startup prerequisites)
APP_CORS_DOMAINhttp://localhost:3000Allowed CORS origins
APP_DEFAULTS_BOARDIDS110Comma-separated default boardIds
APP_DISABLE_PERSISTENCEfalseDeclares that the deployment has no database. Read only by token generation (skips the ACL lookup) and by the release-time db:migrate:prod; other Postgres-backed code is not guarded (details). The defaults preset sets it true and a preset beats the env var, but db:migrate:prod reads the raw env var (Deployment)
APP_LOCATIONS_BOARDID110Default boardId for /locations
APP_ALLOWED_LISTINGS_STANDARD_STATUSESunsetRESO Standard Statuses available to the frontend
APP_HIDE_UNAVAILABLE_LISTINGS_STATUSESempty listStatuses hidden from the frontend
APP_HIDE_UNAVAILABLE_LISTINGS_STANDARD_STATUSESempty listRESO variant of the above
APP_HIDE_UNAVAILABLE_LISTINGS_HTTP_CODE410Status code served for hidden listings
APP_STATSTOP_LIMIT100Top-N limit for stats/neighborhoods ranking
APP_USESWAGGERfalseServe the Swagger UI at /swagger
APP_LOGGING_GCP_LOGGER_ENABLEDfalseGoogle Cloud logging

Authentication (AUTH_, JWT_)

VariableDefaultPurpose
JWT_PRIVATE_KEY / JWT_PUBLIC_KEY—Relative paths to the RSA key pair
AGENT_JWT_EXPIRE1dAgent token expiration
JWT_EXPIRE30dToken expiration (exp)
JWT_ISSUERhttp://repliers-proxyToken issuer (iss)
AUTH_OTP_TTL_MS600000OTP validity window
AUTH_OTP_RESEND_TTL_MS60000OTP resend cooldown
AUTH_OTP_URIhttp://localhost:3000/auth/otp/processingFrontend page the OTP link opens (?code= appended)
AUTH_OTP_MESSAGE(login link text)Message sent with the OTP
AUTH_OTP_MESSAGE_TYPElink_and_codeOTP delivery shape
AUTH_OTP_MESSAGE_SUBJECT—Subject of the OTP email; left out of the message when unset
AUTH_EMAILTOKEN_ENABLEDfalseLogin with email token
AUTH_EMAILTOKEN_EXPIRE30dEmail-token lifetime
AUTH_EMAILTOKEN_AUTO_OTPfalseAuto-send OTP when an expired email token is used
AUTH_AGENTS_SIGNATURE_SALTbuilt-in placeholderSignature salt for agent links — set a unique secret on every deployment
DEBUG_AUTH_OTP_EXPOSE_CODEfalse⚠️ Exposes OTP codes in responses — debug only

Follow Up Boss (BOSS_)

VariableDefaultPurpose
BOSS_ENABLEDtrueMaster switch for the FUB integration
BOSS_BASEURLhttps://api.followupboss.com/v1API base URL
BOSS_USERNAME / BOSS_PASSWORD—API credentials (password kept for compatibility)
BOSS_SYSTEM / BOSS_SYSTEM_KEY—FUB system registration pair; set a unique BOSS_SYSTEM_KEY secret on every deployment
BOSS_DEFAULT_ASSIGNED_TODefault AgentRead into config (eventsCollection.defaultPersonFields.assignedTo); no reader in src/
BOSS_DEFAULT_SOURCEexample.tldLead source
BOSS_DEFAULT_TAGSAPP_ENVIRONMENT, or dev when that is unsetTags added to all leads
BOSS_PROPERTY_URLhttps://example.tld/listing/[MLS_NUMBER]?boardId=[BOARD_ID]PDP link template
BOSS_CLIENT_URLhttps://example.tld/agent/client/[CLIENT_ID]Client link template
BOSS_ESTIMATE_URLhttps://example.tld/estimate/[ESTIMATE_ID]Estimate link template
BOSS_SAVED_SEARCH_URL—Saved-search link template
BOSS_CUSTOM_AVM_FIELD—FUB person field for the AVM link
BOSS_CUSTOM_FIELDS_STRATEGY—Read into config; no reader in src/
BOSS_REPORT_CLIENT_VIEW_ESTIMATE—Report GET /estimate by end users
BOSS_TIMEOUT_MS30000API timeout
BOSS_WEBHOOK_ENABLEDfalseFUB → backend webhooks
BOSS_WEBHOOK_BASEURLhttps://localhost:3000/webhookWebhook callback base
BOSS_WEBHOOK_CLIENT_TAGS_CSV—Comma-separated tags; the webhook worker creates or updates a client only when the FUB person carries at least one of them (Follow Up Boss)
BOSS_WEBHOOK_USE_NGROKfalseTunnel webhooks locally (needs NGROK_AUTHTOKEN)

Caching (CACHE_, REDIS_)

VariableDefaultPurpose
REDIS_KEYV_ENABLEfalseUse Redis for the Keyv cache (in-memory otherwise)
REDIS_URLredis://localhost:6379Redis server
REDISCLOUD_URL—Fallback only: used when REDIS_URL is unset (REDIS_URL wins)
CACHE_LISTINGS_COUNT_TTL86400000Listings count TTL (ms)
CACHE_LISTINGS_LAST_UPDATED_ON_TTL1200000/listings/lastUpdatedOn TTL
CACHE_FEATURED_LISTINGS_TTL3600000Featured listings TTL
CACHE_BUILDINGS_SEARCH_TTL86400000Buildings search TTL
CACHE_BUILDINGS_SINGLE_TTL3600000Single building TTL
CACHE_LOCATIONS_TTL86400000Locations TTL
CACHE_NEIGHBORHOODSRANKING_TTL86400000Neighborhoods ranking TTL
CACHE_STATSWIDGET_TTL86400000Stats widget TTL; also the TTL of the deprecated listings locations (autosuggest) endpoint
CACHE_AUTOSUGGEST_LOCATIONS_TTL86400000Never read. Declared in src/config.ts but no @cached call site uses it; the deprecated listings locations endpoint uses CACHE_STATSWIDGET_TTL, and GET /locations uses CACHE_LOCATIONS_TTL

Database (DB_, DATABASE_URL)

VariableDefaultPurpose
DATABASE_URL—Full connection URL; overrides the individual DB_* vars
DB_HOSTlocalhostHost
DB_PORT5432Port
DB_NAMErepliersDatabase name
DB_USER / DB_PASSWORDpostgres / postgrespwCredentials
DB_USE_SSLfalseSet true for managed Postgres that requires TLS

Repliers API (REPLIERS_)

VariableDefaultPurpose
REPLIERS_API_KEY—Required. Free sample-data keys at login.repliers.com
REPLIERS_API_KEY_EXTRA—Second key for the historical listings behind estimate property details
REPLIERS_BASE_URLhttps://api.repliers.ioUpstream base URL
REPLIERS_TIMEOUT30000Response timeout
REPLIERS_API_LIMIT / REPLIERS_API_INTERVAL_MS1 / 1000Request throttle (N per interval)
REPLIERS_CACHE_WARMUP_API_KEY—Separate key for SSG traffic; off when unset (see SSG cache-warmup key)
REPLIERS_CACHE_WARMUP_API_LIMIT / REPLIERS_CACHE_WARMUP_API_INTERVAL_MSREPLIERS_API_LIMIT / REPLIERS_API_INTERVAL_MSThe warmup key’s own throttle
REPLIERS_UNAUTHENTICATED_CLIENT_ID0clientId used for guest interactions
REPLIERS_AGENT_ID0agentId for Repliers calls
REPLIERS_AGENT_EMAIL—Agent email for custom SMTP
REPLIERS_PROXY_XFFfalseForward client IPs to Repliers
XFF_SSR_TOKEN—Shared secret identifying SSR requests (X-Forwarded-For-Token); legacy alias REPLIERS_PROXY_XFF_SSR_TOKEN
XFF_SSG_TOKEN—Shared secret for requests with no user behind them (build, ISR, warm-up) — skips IP forwarding, selects the warmup key; legacy alias REPLIERS_PROXY_XFF_SSG_TOKEN
XFF_SSR_IPADDR_OFFSET2Position of the real client IP in the X-Forwarded-For chain; legacy alias REPLIERS_PROXY_XFF_SSR_IPADDR_OFFSET
REPLIERS_ESTIMATES_SEND_EMAIL_NOWfalseSend estimate email immediately
REPLIERS_ESTIMATES_SEND_EMAIL_MONTHLYfalseMonthly estimate emails
REPLIERS_AUTOSUGGEST_*—Autosuggest listing-search tuning: PROVIDER (mapbox/googlemaps), MAX_RESULTS, MAX_RESULTS_DEFAULT, LISTING_STATUS, LISTING_LAST_STATUS, LISTING_STANDARD_STATUS (RESO instances — replaces the two above), LISTING_TYPE, SEARCH_FIELDS, DISPLAY_PUBLIC_VALUE

Scrubbing & listings policy (SETTINGS_)

VariableDefaultPurpose
SETTINGS_SCRUBBING_BOARDIDS12Boards whose listings are scrubbed for guests
SETTINGS_SCRUBBING_SAFE_FIELDSaddress, class, map, propertyType, …Fields never scrubbed
SETTINGS_SCRUBBING_SAFE_ADDRESS_FIELDSarea, city, streetName, …Address sub-fields never scrubbed
SETTINGS_SCRUBBING_DROP_FIELDShistory,agents,rawFields dropped entirely for guests
SETTINGS_SCRUBBING_IMPORTANT_FIELDSboardIdFields copied into nested listings so they can be scrubbed
SETTINGS_SCRUBBING_PROCESS_DUPLICATES_ENABLEDtrueDuplicates-based scrubbing
SETTINGS_SCRUBBING_FORCE_DISPLAY_PUBLIC_YESfalse⚠️ Board-regulation sensitive
DUPLICATES_REFERENCE_BOARD_RESOURCE_ID9997Reference board for duplicates scrubbing
SETTINGS_RESTRICTED_LISTINGS—Comma-separated MLS blocklist (see Scrubbing)
SETTINGS_MAX_ESTIMATE_ID100000Maximum accepted estimateId in request validation (src/validate/estimate.ts). The defaults preset sets max_estimate_id to 0, which overrides this variable (Estimates)
SETTINGS_MLSNUMBER_PREFIXemptyMLS-number prefix, see MLS number prefix
SETTINGS_LOCATIONS_ACTIVE_COUNT_LIMIT5Active-count limit passed to the locations lookup
SETTINGS_LOCATIONS_ALLOWED_AREASemptyComma-separated allowed areas (lower-cased)
SETTINGS_LOCATIONS_ALLOW_ALL_AREASfalseSkip the allowed-areas filter
SETTINGS_LOCATIONS_DROP_COORDINATESfalseDrop coordinates from locations responses
SETTINGS_FEATURED_LISTINGS[]JSON array of {slug, clientId} for /listings/featured/:slug
SETTINGS_EXTENDED_PROPERTY_DETAILSfalseApproximate property details fallback
SETTINGS_NLP_VERSION3NLP model version
SETTINGS_VALIDATION_VERSION—Contact-form validation variant (see Contact)
SETTINGS_EVENTS_COLLECTOR_URL_HOST—Host for event link templates
SETTINGS_EVENTS_COLLECTOR_DEFAULT_BOARD_ID12Fallback boardId for event lookups
SETTINGS_EVENTS_COLLECTOR_EVENT_TAGS_SUBSCRIBE_NEWSLETTER—Tags for newsletter events
SETTINGS_EVENTS_COLLECTOR_EVENT_TAGS_SCHEDULE_ESTIMATE—Tags for estimate-scheduling events
SETTINGS_EVENTS_COLLECTOR_EVENT_TAGS_UNSUBSCRIBED—Tags for unsubscribe events

Messaging, NATS, geocoding, OAuth

VariableDefaultPurpose
SMTP_ENABLEDfalseStatic Gmail account instead of Repliers messaging
GMAIL_USER / GMAIL_APP_PASSWORD—Gmail sender when SMTP is on
NATS_ENABLEDfalseDummy NATS when off
NATS_SERVERlocalhost:4222NATS server
NATS_NAMEdev-portalConnection name
NATS_CREDS''Credentials file content (empty for local)
NATS_WORKER_CONSUMER_STREAM / NATS_WORKER_CONSUMER_NAMEboss-people / boss-people-workerWorker consumer binding
MAPBOX_ACCESS_TOKEN—Required for address autosuggest
MAPBOX_BASEURLhttps://api.mapbox.com/search/searchbox/v1Search API
MAPBOX_TIMEOUT30000Timeout
GOOGLE_MAPS_API_KEY / GOOGLE_MAPS_BASE_URL / GOOGLE_MAPS_TIMEOUT_MS—Google geocoding alternative
PROXIMITY_SEARCH_LAT / LONG / RADIUS_METERS45.420779 / -75.69791 / 150000Autosuggest proximity bias
PROXIMITY_SEARCH_COUNTRY / LANGUAGE / REGION_CODEca / en / unsetGeocoder country, language and region filters (Mapbox; Google uses country and language)
NGROK_AUTHTOKEN—Required (startup assert) when BOSS_WEBHOOK_ENABLED and BOSS_WEBHOOK_USE_NGROK are both true
OAUTH_GOOGLE_CLIENT_ID / SECRET / REDIRECT_URI—Google sign-in
OAUTH_FACEBOOK_CLIENT_ID / SECRET / REDIRECT_URI—Facebook sign-in
SOCIAL_PINTEREST_CLIENT_ID / SECRET / REDIRECT_URI1 / 1 / —Pinterest account linking
GOOGLE_CREDENTIALS—GCP service-account JSON content; required whenever APP_ENVIRONMENT is not localhost (startup assert). Platforms that pass secrets as content need a start hook that writes it to a file

Runtime

VariableDefaultPurpose
PORT8080HTTP port
NODE_ENVproductiondevelopment under npm run dev
DOT_ENV_CONFIG.envWhich env file to load
LOGLEVELinfopino log level
LOGTAIL_TOKEN—Logtail log shipping
DEBUG—debug package namespaces (repliers:*)
Last updated on