Repository navigation
Expand file tree
/
Copy pathAPI_KEYS.local.md.example
More file actions
76 lines (54 loc) · 1.84 KB
/
Copy pathAPI_KEYS.local.md.example
File metadata and controls
76 lines (54 loc) · 1.84 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# MedScan — local API keys (PRIVATE)
Copy this file to **`API_KEYS.local.md`** in the same folder and fill in your values.
`API_KEYS.local.md` is gitignored — do not commit it.
```powershell
copy docs\API_KEYS.local.md.example docs\API_KEYS.local.md
```
**Last updated:** _YYYY-MM-DD_
---
## Backend — `medscan/backend/.env`
| Variable | Value |
|----------|-------|
| `SECRET_KEY` | |
| `JWT_SECRET_KEY` | |
| `DATABASE_URL` | |
| `MEDSCAN_CLIENT_API_KEYS` | |
| `AZURE_DOCUMENT_INTELLIGENCE_ENDPOINT` | |
| `AZURE_DOCUMENT_INTELLIGENCE_KEY` | |
| `GOOGLE_OAUTH_CLIENT_ID` | |
| `GOOGLE_OAUTH_CLIENT_SECRET` | |
| `CORS_ORIGINS` | |
---
## Frontend — `medscan/frontend/.env`
| Variable | Value |
|----------|-------|
| `VITE_API_URL` | `https://medscan-api.azurewebsites.net` |
| `VITE_MEDSCAN_API_KEY` | _(same as `MEDSCAN_CLIENT_API_KEYS`)_ |
| `VITE_GOOGLE_CLIENT_ID` | |
| `VITE_OMNIDIMENSION_WIDGET_SECRET` | |
---
## Mobile — `flutter run` / `flutter build`
| Dart define | Value |
|-------------|-------|
| `API_BASE_URL` | `https://medscan-api.azurewebsites.net` |
| `MEDSCAN_API_KEY` | _(same as `MEDSCAN_CLIENT_API_KEYS`)_ |
| `GOOGLE_CLIENT_ID` | _(same as `GOOGLE_OAUTH_CLIENT_ID`)_ |
---
## Azure App Service — `medscan-api`
Portal: **rg-medscan** → **medscan-api** → Configuration → Application settings
| Setting | Value |
|---------|-------|
| `MEDSCAN_CLIENT_API_KEYS` | |
| `SECRET_KEY` | |
| `JWT_SECRET_KEY` | |
| `DATABASE_URL` | |
| `CORS_ORIGINS` | `https://icy-pond-06a17d300.7.azurestaticapps.net` |
---
## GitHub Actions secrets
| Secret | Value / notes |
|--------|----------------|
| `AZURE_CREDENTIALS` | Service principal JSON |
| `AZURE_SWA_DEPLOYMENT_TOKEN` | `az staticwebapp secrets list -g rg-medscan -n swa-medscan` |
---
## Notes
- Rotate keys if they were ever pasted in chat, screenshots, or a public repo.