-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
50 lines (41 loc) · 2.03 KB
/
Copy path.env.example
File metadata and controls
50 lines (41 loc) · 2.03 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
# Single .env for the whole monorepo (apps/web + apps/api).
# Copy to .env at the repo root and fill in the values:
# cp .env.example .env
# ---------------------------------------------------------------------------
# apps/web (Next.js) — NEXT_PUBLIC_* vars are inlined into the client bundle
# at build time, so `next build`/`next dev` must run with these set.
# ---------------------------------------------------------------------------
# Google Maps JavaScript API key
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=
# Base URL the browser uses to call the Elysia API (must be reachable from
# whoever's browser is loading the site — TVs, other PCs, not just the server).
# This is inlined into the client bundle at build time, so it's resolved by
# whatever machine opens the page in a browser — NOT by the container/host
# running Next.js. Use `host.docker.internal` only if the browser itself runs
# inside a container that needs to reach a service on its own host; for normal
# use (dev on your machine, or deployed and accessed over the network) it
# should be `localhost:3300` or the server's real IP/hostname.
NEXT_PUBLIC_API_URL=http://localhost:3300
# ---------------------------------------------------------------------------
# apps/api (Elysia/Bun)
# ---------------------------------------------------------------------------
# Port the Elysia API listens on. Deliberately not named PORT: Next.js's CLI
# also reads process.env.PORT and would bind the web app to it too, since
# both apps load this same file.
API_PORT=3300
# PostgreSQL connection used by the CIPA module (apps/api/src/cipa_db.ts)
DATABASE_URL=postgres://smartcampus:smartcampus@localhost:5432/smartcampus
# Optional: start date for the "days without incident" counter (default 2026-01-01)
# CRUZ_INICIO=2026-01-01
# InfluxDB3 (apps/api/src/influx.ts)
INFLUXDB_URL=http://localhost:8181
INFLUXDB_TOKEN=
INFLUXDB_ORG=
INFLUXDB_DATABASE=iot_sensors
# SMTP used to email the comodatos report (apps/api/src/email_sender.ts)
EMAIL_HOST=
EMAIL_PORT=
EMAIL_USER=
EMAIL_PASSWORD=
FROM_EMAIL=
TO_EMAIL=