Repository navigation
Runtime Config (Dev vs Prod)
github-actions[bot] edited this page Oct 15, 2026
·
5 revisions
| How the backend runs | Where settings come from |
|---|---|
npm run dev / npm run dev:backend
|
The shell script sources backend/.env.dev before starting Maven. |
./mvnw spring-boot:run directly |
Your process environment; .env.dev is not loaded automatically. |
./setup.sh |
Explicit local values in docker-compose.local.yml; .env.dev is not loaded. |
| Hosted backend | Environment variables configured in the hosting service. |
backend/.env.example is a template, not the active environment file. Keep real credentials out of Git.
- Default profile:
postgres. -
postgresanddev: external PostgreSQL connection, Hibernatevalidate. -
prod: external PostgreSQL connection, Hibernate defaults tovalidate; an override exists throughSPRING_JPA_HIBERNATE_DDL_AUTO. -
test: PostgreSQL fromPOSTGRES_TEST_*with Flyway andvalidate; the suite cleans and re-migrates that database (see Testing). -
APP_AUTH_REQUIRE_PASSWORD=falsecontrols local password bypass. Choosing thedevprofile alone does not enable it.
| Setting | Meaning / default |
|---|---|
SPRING_DATASOURCE_URL |
JDBC PostgreSQL URL; required |
SPRING_DATASOURCE_USERNAME |
Database user; required |
SPRING_DATASOURCE_PASSWORD |
Database password; required |
SPRING_DATASOURCE_DRIVER_CLASS_NAME |
Defaults to org.postgresql.Driver
|
SPRING_PROFILES_ACTIVE |
Optional profile override; default is postgres outside Compose |
APP_AUTH_REQUIRE_PASSWORD |
true by default; false skips password verification for existing users |
APP_CORS_ALLOWED_ORIGINS |
Comma-separated allowed origins; defaults to localhost:4200 |
SPRING_JPA_HIBERNATE_DDL_AUTO |
Prod override; leave validate for migration-managed databases |
Session lifetime defaults to 720 hours in AuthService; the Spring property is app.auth.session-ttl-hours.
| Backend location | Host in JDBC URL for the supplied database |
|---|---|
| Running on your computer | localhost:5432 |
| Running in either supplied Docker workflow | postgres:5432 |
| Hosted | Provider-supplied hostname and any required TLS options |
Board/widget writes require a bearer session belonging to the owner or an admin.
System-route updates and the APP_ADMIN_TOKEN / X-Admin-Token bypass are retired. Board and widget writes use bearer sessions. For local use, see Dev login.
- Frontend code uses relative
/api/...paths. - Angular development proxy forwards to
http://localhost:8080. - Inside
./setup.sh,proxy.docker.conf.jsonforwards tohttp://backend:8080. -
frontend/vercel.jsonforwards to the configured Render backend URL.
See Docker, Local development, and Deployment for complete workflows.
Start here · Troubleshooting · Source repository
Reviewed October 6, 2026 against b8deab3. Feature status distinguishes working behavior from unfinished UI.