Adds the full Next.js app (app/, components/, lib/, scripts/, assets/, docs/, Dockerfile, compose, configs) to version control. Security: - CIPC BizPortal customer-code logins (Login 1 + Login 3) now read CIPC_LOGIN1_CODE / CIPC_LOGIN1_PASSWORD / CIPC_LOGIN3_CODE / CIPC_LOGIN3_PASSWORD from .env.local instead of source. - BizPortal personal login in apply-bizportal route reads BIZPORTAL_ID_NO / BIZPORTAL_PASSWORD. - Added .env.example as the committed template. .gitignore excludes .env*, node_modules, .next, logs, sqlite, Playwright storage_state.json (live CIPC cookies), scratch dirs, client PDFs and debug screenshots.
33 lines
No EOL
1.1 KiB
Text
33 lines
No EOL
1.1 KiB
Text
# Workflow app — environment template
|
|
#
|
|
# Copy to .env.local in this folder and fill in the real values.
|
|
# .env.local is git-ignored and must never be committed.
|
|
|
|
# --- PocketBase -------------------------------------------------------------
|
|
PB_URL=https://pb.agent.apphub.co.za
|
|
NEXT_PUBLIC_PB_URL=https://pb.agent.apphub.co.za
|
|
# Superuser/admin token. Lives for ~24h — re-grab from the PB admin UI.
|
|
PB_TOKEN=
|
|
PB_ADMIN_EMAIL=
|
|
PB_ADMIN_PASSWORD=
|
|
|
|
# --- App URLs ---------------------------------------------------------------
|
|
APP_URL=http://localhost:3000
|
|
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
|
|
|
# --- Telegram notifications -------------------------------------------------
|
|
TELEGRAM_BOT_TOKEN=
|
|
TELEGRAM_CHAT_ID=
|
|
|
|
# --- CIPC BizPortal logins --------------------------------------------------
|
|
# Login 1 — primary; rotates to Login 3 when it hits the 100-search limit.
|
|
CIPC_LOGIN1_CODE=
|
|
CIPC_LOGIN1_PASSWORD=
|
|
# Login 3 — fallback.
|
|
CIPC_LOGIN3_CODE=
|
|
CIPC_LOGIN3_PASSWORD=
|
|
|
|
# --- BizPortal personal login (name reservation flow) -----------------------
|
|
# The 13-digit SA ID number used to log in at bizportal.gov.za.
|
|
BIZPORTAL_ID_NO=
|
|
BIZPORTAL_PASSWORD= |