-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
43 lines (36 loc) · 1.81 KB
/
Copy path.env.example
File metadata and controls
43 lines (36 loc) · 1.81 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
# ============================================================
# beacon stack, environment
# Loaded into every service that sets `env_file: .env` in
# docker-compose.yml (app, caddy, web). Each var below is only
# *consumed* by the service(s) noted.
# Contains secrets, keep out of git (.env is gitignored).
# ============================================================
# ---- Backend API server (service: app) ----------------------
# Address the Go server listens on inside its container.
LISTEN_ADDR=:8080
# Postgres DSN. Host "db" is the compose service name; the password
# must match POSTGRES_PASSWORD in docker-compose.yml.
POSTGRES_DSN=postgres://tower:CHANGE_DB_PASS@db:5432/tower?sslmode=disable
# ---- MQTT ingest brokers (service: app) ---------------------
# Live packet sources. Put your real passwords back here.
MQTT_BROKER_1_URL=wss://mqtt1.meshcore.ca:443
MQTT_BROKER_1_USERNAME=CHANGE_NAME
MQTT_BROKER_1_PASSWORD=CHANGE_PASS
MQTT_BROKER_2_URL=wss://mqtt2.meshcore.ca:443
MQTT_BROKER_2_USERNAME=CHANGE_NAME
MQTT_BROKER_2_PASSWORD=CHANGE_PASS
# ---- Public domain / TLS (service: caddy) -------------------
# Site address + automatic Let's Encrypt certificate.
DOMAIN=dev.meshcore.ca
# ---- Frontend URLs (service: web) ---------------------------
# Baked into the static JS bundle when the web container starts.
# MUST be the public domain (never localhost) and match DOMAIN above,
# the browser makes these calls, not the container.
# After changing these, recreate the web container so they re-inject:
# docker compose up -d --force-recreate web
# (and hard-refresh / incognito, since /assets/* is cached immutable)
VITE_API_BASE=https://dev.meshcore.ca/api/v1
VITE_WS_URL=wss://dev.meshcore.ca/ws
# Default "All" map view (decimal "lat,lon" + zoom). Unset = world view.
VITE_MAP_CENTER=52.5,-96.8
VITE_MAP_ZOOM=3.2