chore: 重构数据库迁移与 nginx 配置目录
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
## Security & Configuration Tips
|
||||
- Backend configuration is stored under `sproutgate-backend/data/config/` (admin, auth, email, check-in, registration invites).
|
||||
- Backend MySQL connection comes only from environment variables (`DB_DSN`, or `DB_HOST`/`DB_PORT`/`DB_USER`/`DB_PASSWORD`/`DB_NAME`); no credentials are hardcoded. Set them in `sproutgate-backend/.env` (gitignored) for local dev — it's auto-loaded on `go run .`.
|
||||
- Frontend API base URL can be set via `sproutgate-frontend/.env` using `VITE_API_BASE`.
|
||||
- Avoid committing real credentials or production tokens; use local overrides for secrets.
|
||||
- API reference lives in `sproutgate-backend/API_DOCS.md` and is served at `GET /api/docs`. Brief JSON overview: `GET /` and `GET /api`.
|
||||
|
||||
Reference in New Issue
Block a user