Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
35 lines (30 loc) · 1.46 KB
/
Copy path.env.example
File metadata and controls
35 lines (30 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
# Local defaults. Committed, and used as-is when no .env exists (`make run` needs nothing from you).
# Copy to `.env` only to override something or to add the personal values in the last block. `.env` is gitignored.
# --- Application ---
APP_NAME=spring-template
SERVER_PORT=8080
# Label on every metric (dashboard "Environment" selector). Production sets prod.
APP_ENV=local
# --- Local database (compose.yml `db`) ---
POSTGRES_DB=app
POSTGRES_USER=app
POSTGRES_PASSWORD=app
# Host port for the local Postgres (container port stays 5432). Change if something already listens on 5432.
DB_PORT=5432
# --- Local observability stack (`make observability-up`) ---
GRAFANA_PORT=3000
PROMETHEUS_PORT=9090
# --- Personal: production access from this machine (put these in .env, never commit them) ---
# SSH target for scripts/vps.sh and the vps-db skill: user@host or an alias from ~/.ssh/config.
# Repository checkout on the VPS (default: ~/<repo name>).
#VPS_APP_DIR=~/spring-template
# Local end of the SSH tunnel to the production database.
#VPS_DB_LOCAL_PORT=15432
# --- Personal: ad-hoc dashboard push to Grafana Cloud (CI has the same values as repository secrets) ---
# Stack URL and a service-account token with dashboards:write (+ alert.provisioning:write for alerts).
#GRAFANA_URL=https://yourstack.grafana.net
#GRAFANA_API_TOKEN=
# Telegram alerts: set both to push alert rules; leave unset to skip alerting entirely.
#TELEGRAM_BOT_TOKEN=
#TELEGRAM_CHAT_ID=