-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.dev.example
More file actions
60 lines (48 loc) · 2.28 KB
/
Copy path.env.dev.example
File metadata and controls
60 lines (48 loc) · 2.28 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# ============================================================
# OpenClockwork – Local Docker Dev Stack (Environment Variables)
# ============================================================
# Copy this file to .env.dev and adjust the values as needed:
# cp .env.dev.example .env.dev
#
# Usage with docker-compose:
# docker compose -f docker-compose.dev.yml --env-file .env.dev up -d --build
# --------------------------------------------------------------------------
# Database (PostgreSQL)
# --------------------------------------------------------------------------
# DB credentials used by the API to connect to the 'db' service.
POSTGRES_USER=openclockwork
POSTGRES_PASSWORD=openclockwork
POSTGRES_DB=openclockwork
# Host port for the database. Set to e.g. 5433 if a local PG is running on 5432.
DB_PORT=5432
# Keep the raw database, API, and HTTP web ports accessible only on this host.
# The iPad test overlay exposes a separate HTTPS gateway to the LAN.
DEV_BIND_ADDRESS=127.0.0.1
# --------------------------------------------------------------------------
# API (NestJS)
# --------------------------------------------------------------------------
API_PORT=3001
# Server timezone — core-time-window and off-hours logic depends on this.
TZ=UTC
# JWT signing secret for user sessions. Rotate per deployment!
JWT_SECRET=change-me-jwt-secret
# Local-only QR signing secret. Keep it distinct from JWT_SECRET even in dev.
TERMINAL_QR_SECRET=dev-terminal-qr-secret-change-me
TERMINAL_CHALLENGE_TTL_SECONDS=45
TERMINAL_PAIRING_TTL_SECONDS=600
# Static API keys for internal endpoints.
ERP_API_KEY=dev-erp-key
CRON_API_KEY=dev-cron-key
# Browser origins allowed to call the API. docker-compose.ipad.yml overrides
# this with IPAD_ORIGIN for the LAN test.
API_CORS_ORIGINS=http://localhost,http://localhost:8080
# --------------------------------------------------------------------------
# Web (Nginx)
# --------------------------------------------------------------------------
# Host port exposed by the frontend container.
WEB_PORT=8080
# Pre-fill the synthetic seed login and display the demo-data notice.
DEMO_MODE=true
# Optional voluntary-support destination. Set to an empty value to hide the
# support button; terminal functionality is never affected.
SUPPORT_URL=https://github.com/sponsors/patrickschiller