gabriel / musehub public
.env.example
71 lines 3.9 KB
Raw
sha256:30c51e90dfe2486f79752f7305be1faf2f086d5407ee5e1307167b5a8c61549d perf(db): SQL audit pass 2 + Tier A review fixes; local tim… Opus 5.5 minor ⚠ breaking 2 days ago
1 # MuseHub environment configuration template
2 # Copy to .env and fill in real values for local development.
3 # NEVER commit .env, .env.staging, .env.production, or .env.prod to version control.
4 #
5 # Secret generation:
6 # openssl rand -hex 32 → for WEBHOOK_SECRET_KEY, RUNNER_TOKEN
7 # openssl rand -hex 16 → for DB_PASSWORD
8 #
9 # Environments: local | staging | production
10 # NEVER set DEBUG=true in staging or production — it exposes internals.
11
12 # ── Core ─────────────────────────────────────────────────────────────────────
13
14 MUSE_ENV=local
15 MUSEHUB_INTEL_ALL_REPOS=1 # always-on code intelligence for every repository (the deployment identity below must be set)
16 MUSEHUB_DEPLOYMENT=local # intel execution gate identity; hosted hosts get staging/production from deploy/secrets.sh, which also writes MUSE_ENV
17 DEBUG=true
18 # Expensive diagnostics are separate opt-ins (each makes the server many times slower than production):
19 # DEBUG_TRACEMALLOC=true # /_debug/memory allocation tracking (10 frames per allocation)
20 # DEBUG_SQL_ECHO=true # log every SQL statement
21
22 # ── Database ──────────────────────────────────────────────────────────────────
23
24 DATABASE_URL=postgresql+asyncpg://musehub:musehub@postgres:5432/musehub
25 DB_PASSWORD=changeme
26
27 # ── Auth & secrets ────────────────────────────────────────────────────────────
28 # Generate with: openssl rand -hex 32
29
30 WEBHOOK_SECRET_KEY=changeme
31 RUNNER_TOKEN=changeme
32
33 # ── CORS ──────────────────────────────────────────────────────────────────────
34
35 CORS_ORIGINS=http://localhost:3000,https://localhost:1337
36
37 # ── Object storage ────────────────────────────────────────────────────────────
38 # Works with any S3-compatible backend: Cloudflare R2, MinIO, AWS S3.
39 # In Docker dev these are set via docker-compose.override.yml (MinIO).
40
41 # BLOB_STORAGE_BUCKET=muse-objects
42 # BLOB_STORAGE_ENDPOINT=http://localhost:9000
43 # BLOB_STORAGE_PUBLIC_ENDPOINT=http://localhost:9000
44 # BLOB_STORAGE_ACCESS_KEY_ID=minioadmin
45 # BLOB_STORAGE_SECRET_ACCESS_KEY=minioadmin
46 # BLOB_STORAGE_REGION=us-east-1
47
48 MUSEHUB_RELEASES_DIR=/data/releases
49
50 # ── Staging / production guidance ─────────────────────────────────────────────
51 # For staging and production deployments, values are injected into .env by
52 # deploy/secrets.sh from AWS SSM Parameter Store — do not edit .env manually.
53 # Run: MUSEHUB_ENV=staging bash deploy/secrets.sh
54 #
55 # secrets.sh sets all of the following automatically based on MUSEHUB_ENV:
56 #
57 # MUSE_ENV=staging # or 'production'
58 # DEBUG=false
59 # PUBLIC_URL=https://staging.musehub.ai # prod: https://musehub.ai
60 # CORS_ORIGINS=["https://staging.musehub.ai"]
61 # DB_PASSWORD=<from SSM /musehub/staging/DB_PASSWORD>
62 # WEBHOOK_SECRET_KEY=<from SSM /musehub/staging/WEBHOOK_SECRET_KEY>
63 # RUNNER_TOKEN=<from SSM /musehub/staging/RUNNER_TOKEN>
64 # BLOB_STORAGE_BUCKET=musehub-staging # prod: musehub-prod
65 # BLOB_STORAGE_ENDPOINT=https://<account>.r2.cloudflarestorage.com
66 # BLOB_STORAGE_REGION=auto
67 # BLOB_STORAGE_ACCESS_KEY_ID=<from SSM>
68 # BLOB_STORAGE_SECRET_ACCESS_KEY=<from SSM>
69 #
70 # SSM parameters managed at: /musehub/{staging,production}/<NAME>
71 # EC2 IAM role requires: ssm:GetParameter on /musehub/<env>/*
File History 8 commits
sha256:30c51e90dfe2486f79752f7305be1faf2f086d5407ee5e1307167b5a8c61549d perf(db): SQL audit pass 2 + Tier A review fixes; local tim… Opus 5.5 minor ⚠ 2 days ago
sha256:545266da3f09ffbfe65a21bfc233bb91fe37f83ab714dd2d07db1fee98c3988b feat(intel): always-on code intelligence for every reposito… Sonnet 5.5 minor ⚠ 3 days ago
sha256:fae7474413778dd8c57733b9e0e8804fed9ebaba62533b69583fab2ca619dd9d fix(intel): a deployment identity that contradicts MUSE_ENV… Sonnet 5.5 minor ⚠ 3 days ago
sha256:ae4bdb8b06c780fb3e72ed0d894b616bb5acc7fa17f2cc7027f7706f53cc5b7d docs: document staging/prod env vars in .env.example Sonnet 4.6 minor ⚠ 186 days ago
sha256:6fadea36d754a8a64a5fda40f88d06e5a117f814d5617a6b98132f9148b49280 refactor: rename R2_* env vars to BLOB_STORAGE_* for provid… Sonnet 4.6 minor ⚠ 190 days ago
sha256:2de7b961dcf6e76b7a3ca92553b19d9375032db88aeb079f0783e88f57c193e2 chore: use https://localhost:1337 throughout docs, source, … Sonnet 4.6 minor ⚠ 207 days ago
sha256:a88854503673dcad22463307411e1cc28e8c62b99ef5c8194ca642f1f99d101b chore: swap port to 1337 (was 10003) Sonnet 4.6 minor ⚠ 209 days ago
sha256:d5c70fceddb72106c916e59d645291aff7ebceb853bd7caf5950af745d9693df fix: create .env.example as a proper file documenting all r… Human minor 219 days ago