-
-
Notifications
You must be signed in to change notification settings - Fork 356
Expand file tree
/
Copy path.env.example
More file actions
43 lines (37 loc) · 2.3 KB
/
Copy path.env.example
File metadata and controls
43 lines (37 loc) · 2.3 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
34
35
36
37
38
39
40
41
42
43
# .env.example — copy to .env and fill in the values before running locally.
#
# Required vars are needed for the app to boot. Optional vars enable
# specific features (mobile OAuth, webhooks, macOS workarounds) and can
# be left blank during basic development.
#
# Generate secret keys with: bundle exec rails secret
# ─── Database (required) ─────────────────────────────────────────────────────
# config/database.yml reads these discrete vars (NOT a DATABASE_URL).
# Default: PostgreSQL on localhost:5432.
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=dawarich_development
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=
# ─── Redis (required) ────────────────────────────────────────────────────────
REDIS_URL=redis://localhost:6379
# ─── JWT / Auth secrets (required) ───────────────────────────────────────────
# Used for subscription tokens and mobile auth challenge/link tokens.
JWT_SECRET_KEY=
AUTH_JWT_SECRET_KEY=
# ─── macOS fork() fix (optional — macOS only) ─────────────────────────────────
# Prevents "objc[…]: +initialize may have been in progress in another thread"
# warnings/crashes when Sidekiq forks on macOS.
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
# ─── Background job tuning (optional) ─────────────────────────────────────────
# Seconds the nightly place-visit job pauses between places, to keep it from
# saturating the database and delaying point ingestion. Raise on large databases.
PLACE_VISITS_THROTTLE_SECONDS=0.1
# ─── SMTP email (optional) ───────────────────────────────────────────────────
# Configure outbound email. SMTP_SSL=true enables implicit TLS (port 465); it
# turns on automatically when SMTP_PORT=465. STARTTLS is the default otherwise.
SMTP_SERVER=
SMTP_PORT=
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_SSL=