You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`.github/workflows/deploy.yml`: deploy pipeline for `main`.
10
10
-`.env.example`: template for local environment variables.
11
11
12
12
## Build, Test, and Development Commands
13
13
-`make up`: build and start all services in detached mode (`docker compose -p base up --build -d`).
14
+
-`make sentry-init`: generate Relay credentials file for Sentry (`infra/sentry/relay/credentials.json`) if it does not exist.
14
15
-`make down`: stop running stack containers.
15
16
-`make status`: show container status and exposed ports.
16
17
-`make mongo`: open `mongosh` inside the running MongoDB container.
@@ -22,6 +23,7 @@ This repository manages the infrastructure stack for the `chill` ecosystem.
22
23
- YAML/Compose: 2-space indentation, lowercase service names (`base-mongo`, `base-grafana`).
23
24
- Environment variables: uppercase with clear prefixes (`MONGO_*`, `GRAFANA_*`, `SENTRY_*`, ...) with entity suffix (`USER` for admin/user login, `PASS` for admin/user password/key, `ID` for account/user/application ID, `TOKEN` for account/user/application secret token, `PORT` for container port exporting, ...).
24
25
- Keep config files service-scoped under `infra/<service>/` and avoid cross-service coupling in a single file.
26
+
- Nginx routing: keep Sentry ingest routes (`/api/store/`, `/api/<project>/...`, `/api/0/relays/`) before the catch-all `/` route and proxy them to Relay.
25
27
26
28
## Testing Guidelines
27
29
There is no formal automated test suite yet. Validate changes with infrastructure smoke checks:
@@ -43,4 +45,5 @@ There is no formal automated test suite yet. Validate changes with infrastructur
43
45
- Never commit real secrets; copy `.env.example` to `.env` and keep credentials local.
44
46
- Ensure `DATA_PATH` directories exist and are writable before `make up`.
45
47
- Set strong local values for `SENTRY_SECRET_KEY` and `SENTRY_DB_PASS` before enabling Sentry.
48
+
- Keep `infra/sentry/relay/credentials.json` local-only (generated on host and gitignored).
46
49
- Treat `make set` and TLS changes as production-impacting operations; review host/domain variables first.
0 commit comments