-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
71 lines (63 loc) · 1.88 KB
/
.env.example
File metadata and controls
71 lines (63 loc) · 1.88 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
61
62
63
64
65
66
67
68
69
70
71
# Core app
DEV_MODE=true
# Timezone (Dominican Republic: UTC-4, no DST)
WLP_TZ=America/Santo_Domingo
APP_SEC_KEY=CHANGE_ME_IN_PRODUCTION
APP_RECAPTCHA_SECRET_KEY="6LcYV3EsAAAAAEzzR19uOJlaX-6NC3EmUhVaaN9U"
RECAPTCHA_PUBLIC_KEY="6LcYV3EsAAAAAA2wPG6m-HGcvKCdIKcSzcxQALGf"
WLP_BASE_DOMAIN=localhost
WLP_API_SUBDOMAIN=api
# Optional overrides (usually not needed; auto-derived from base/subdomain):
# WLP_SERVER_NAME=localhost
# WLP_API_SERVER_NAME=api.localhost
# APP_DOMAIN=https://localhost
# API_DOMAIN=https://api.localhost
DATABASE_URL=sqlite:///database.db?journal_mode=WAL2
# Optional tracking/ads (disabled by default for open-source deployments)
WLP_ENABLE_TRACKING=false
WLP_GA_MEASUREMENT_ID=
WLP_TWITTER_PIXEL_ID=
WLP_ENABLE_ADSENSE=false
WLP_ADSENSE_CLIENT_ID=
# SMTP
SMTP_TEST=true
EMAIL_SENDER="Water Level .Pro <no-reply@example.com>"
SMTP_SERVER=127.0.0.1
SMTP_PORT=25
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_USE_STARTTLS=true
SMTP_USE_SSL=false
SMTP_TIMEOUT_SECONDS=20
# Redis runtime clients
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
# Redis cache
API_CACHE_REDIS_HOST=127.0.0.1
API_CACHE_DEFAULT_TIMEOUT=30
WEB_CACHE_REDIS_HOST=127.0.0.1
WEB_CACHE_DEFAULT_TIMEOUT=30
# Twilio
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_NUMBER=
# Demo keys
DEMO_S1_PUB_KEY="1pubDEMO_SENSOR_S1"
DEMO_S1_PRV_KEY="1prvDEMO_SENSOR_S1"
DEMO_RELAY_PUB_KEY="3pubDEMO_RELAY_R1"
DEMO_RELAY_PRV_KEY="3prvDEMO_RELAY_R1"
# Docker reverse proxy and reports
WLP_WEB_UPSTREAM=app:8000
WLP_API_UPSTREAM=app:8001
WLP_SSL_CERT_PATH=/etc/nginx/certs/localhost.crt
WLP_SSL_KEY_PATH=/etc/nginx/certs/localhost.key
WLP_APP_IMAGE=rguardo/waterlevel-pro:latest
GOACCESS_REFRESH_SECONDS=600
# Production DNS minimal setup (same base domain)
# WLP_BASE_DOMAIN=example.com
# WLP_API_SUBDOMAIN=api
# Optional override examples:
# APP_DOMAIN=https://example.com
# API_DOMAIN=https://api.example.com
# WLP_WEB_UPSTREAM=app:8000
# WLP_API_UPSTREAM=app:8001