-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
38 lines (33 loc) · 1.46 KB
/
Copy path.env.example
File metadata and controls
38 lines (33 loc) · 1.46 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
# FinWatch example environment.
#
# Copy to `.env` for local development: `cp .env.example .env`
# These are SAFE, NON-SECRET example development credentials only. Never put
# real secrets here, and never commit a real `.env`.
# --- API ---------------------------------------------------------------
APP_ENV=development
LOG_LEVEL=info
HTTP_HOST=0.0.0.0
HTTP_PORT=8080
HTTP_READ_TIMEOUT=15s
HTTP_WRITE_TIMEOUT=15s
HTTP_IDLE_TIMEOUT=60s
HTTP_SHUTDOWN_TIMEOUT=15s
CORS_ALLOWED_ORIGINS=http://localhost:5173,http://localhost:8081
# JWT signing secret: a SAFE example dev value only, at least 32 characters.
# Never reuse this value outside local development.
JWT_SIGNING_SECRET=dev_only_example_secret_change_me_32+chars
JWT_ACCESS_TOKEN_TTL=15m
# Demo account passwords for `go run ./cmd/api seed-users` (operator@example.com,
# admin@example.com). SAFE example dev values only.
DEMO_OPERATOR_PASSWORD=operator_dev_password
DEMO_ADMIN_PASSWORD=admin_dev_password
# --- Database (example dev values only) --------------------------------
POSTGRES_USER=finwatch
POSTGRES_PASSWORD=finwatch_dev_password
POSTGRES_DB=finwatch
# Host that the API uses to reach Postgres. Inside Docker Compose this is the
# service name `db`; from the host machine it is `localhost`.
DATABASE_URL=postgres://finwatch:finwatch_dev_password@db:5432/finwatch?sslmode=disable
# --- Web ---------------------------------------------------------------
VITE_API_URL=http://localhost:8080
VITE_WS_URL=ws://localhost:8080/ws