-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
33 lines (26 loc) · 1.58 KB
/
.env.example
File metadata and controls
33 lines (26 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copy to `.env` / `.env.local` for local development (never commit real secrets).
# `apps/web` loads repo-root `.env` / `.env.local` via `next.config.ts` (so DATABASE_URL here applies to Next API routes).
# PostgreSQL (host machine connecting to Docker Compose: use localhost and mapped port)
DATABASE_URL=postgresql://stayops:stayops@localhost:5432/stayops
# Dedicated integration test DB (prevents tests touching your main local DB)
TEST_DATABASE_URL=postgresql://stayops:stayops@localhost:5432/stayops_test
# Redis
REDIS_URL=redis://localhost:6379
# Session signing (required once env validation is enabled; use 32+ random bytes in production)
SESSION_SECRET=replace-with-a-long-random-secret-at-least-32-chars
# Optional: after migrate, run `pnpm --filter @stay-ops/db seed` to create admin@stayops.local / admin (local dev only)
# STAYOPS_DEV_ADMIN=1
# IANA timezone for scheduling and display
APP_TIMEZONE=Etc/UTC
# Logging (optional)
# LOG_LEVEL=info
# Hosthub — see https://www.hosthub.com/docs/api/ and docs/vendor/hosthub-api.md
# Gitignored Hosthub key file (repo root): copy .env.hosthub.example → .env.hosthub.local
# Loaded by `pnpm hosthub:smoke` and by the sync worker on startup (existing env vars win).
# HOSTHUB_API_BASE=https://app.hosthub.com/api/2019-03-01
# HOSTHUB_API_TOKEN=
# List path after base (default /calendar-events in @stay-ops/sync HosthubClient)
# HOSTHUB_API_RESERVATIONS_PATH=/calendar-events
# HMAC of raw POST body; default header x-hosthub-signature, value sha256=<hex> (override if docs differ)
# HOSTHUB_WEBHOOK_SIGNATURE_HEADER=x-hosthub-signature
# WEBHOOK_SECRET=