docs: add EPFO/PDF microservice env vars

shad0w 2026-06-24 10:03:03 +00:00
parent 19fd4d2eb7
commit da28f34ea1

@ -30,6 +30,11 @@ Server-side env on pms1 lives in `~/pms/App/.env`; locally in `App/.env.local`
| `FORGEJO_REPO` | optional | optional | `owner/repo` |
| `FORGEJO_TOKEN` | optional | optional | Token scope `write:issue` |
| `GST_SERVICE_URL` | optional | optional | GstService base (default `http://localhost:3003`) |
| `EPFO_SERVICE_URL` | optional | optional | EpfoService base (default `http://localhost:3004`) — crewing UAN/EPFO lookup |
| `EPFO_LIVE` | optional | optional | EpfoService navigates the real portal when `"true"`; otherwise stubbed (deterministic) |
| `PDF_SERVICE_URL` | optional | optional | PdfService base (default `http://localhost:3005`) |
| `PDF_SERVICE_TOKEN` | optional | optional | Shared secret app↔PdfService; **both `PDF_SERVICE_URL` + `PDF_SERVICE_TOKEN` set = “Email to vendor” enabled** |
| `APP_INTERNAL_URL` | optional | optional | URL PdfService fetches the PO export page at (falls back to `NEXTAUTH_URL`) |
| `NEXT_PUBLIC_INVENTORY_ENABLED` | optional | optional | Inventory flag — **off only when `"false"`** |
| `NEXT_PUBLIC_SUBMITTER_VIEW_ALL_ENABLED` | optional | optional | Submitter view-all flag — **on only when `"true"`**. Lets TECHNICAL/MANNING read & export every PO and open History |
| `NEXT_PUBLIC_ENV_LABEL` | optional | **unset** | When set, shows the non-prod banner (`EnvBanner`). Leave unset in production |
@ -56,3 +61,8 @@ Server-side env on pms1 lives in `~/pms/App/.env`; locally in `App/.env.local`
"INTERNAL DEV / STAGING - NOT PRODUCTION" string.
- **GstService** has its own `PORT` (default 3003); the portal reaches it via
`GST_SERVICE_URL`. See [Vendors and GST Lookup](Vendors-and-GST-Lookup).
- **EpfoService / PdfService** have their own `PORT` (3004 / 3005). PdfService
powers **Email PO to vendor**: enabled only when both `PDF_SERVICE_URL` and
`PDF_SERVICE_TOKEN` are set, and the **same token must reach `pdf-service`**
(the deploy exports it from `App/.env`). See
[Deployment and Operations](Deployment-and-Operations#microservices).