40 lines
1.9 KiB
Bash
40 lines
1.9 KiB
Bash
# Hub + local dev-only Firebird settings. Copy to .env locally; never commit
|
|
# credentials or database URLs (this file is a template, .env is gitignored).
|
|
#
|
|
# For a real client Agent installation, use agent/.env.example instead — this
|
|
# file's FIREBIRD_* values are for the disposable dev/test database only.
|
|
|
|
FIREBIRD_DATABASE_PATH=
|
|
# Default MUST be 0. Only ever set to 1 against the authorized disposable
|
|
# test database (see CLAUDE.md "Firebird write policy"); the agent fails
|
|
# closed if the configured path is not exactly that file.
|
|
FIREBIRD_WRITES=0
|
|
|
|
# --- Hub / PostgreSQL ---
|
|
# DATABASE_URL takes precedence when set. If you override POSTGRES_DB/POSTGRES_USER
|
|
# below, also set DATABASE_URL explicitly to match — the fallback URL built from
|
|
# POSTGRES_PASSWORD alone assumes the gti/gti_fiscal defaults.
|
|
DATABASE_URL=postgresql+psycopg://gti:development-only@localhost:5432/gti_fiscal
|
|
POSTGRES_DB=gti_fiscal
|
|
POSTGRES_USER=gti
|
|
POSTGRES_PASSWORD=
|
|
HUB_PORT=8000
|
|
BASE_URL=http://localhost:8000
|
|
APP_ENV=development
|
|
LOG_LEVEL=INFO
|
|
AGENT_ONLINE_THRESHOLD_SECONDS=120
|
|
|
|
# Local-dev-only agent bootstrap. Leave unset in any shared/pilot environment —
|
|
# real Agents are created with central/scripts/register_agent.py.
|
|
AGENT_DEV_TOKEN=
|
|
|
|
NCM_DATASET_URL=https://portalunico.siscomex.gov.br/classif/api/publico/nomenclatura/download/json
|
|
CEST_DATASET_URL=https://www.confaz.fazenda.gov.br/legislacao/convenios/2018/CV142_18
|
|
DATASET_STORAGE_PATH=./data/datasets
|
|
HTTP_TIMEOUT_SECONDS=30
|
|
|
|
# Company context (Agent). Leave empty when C000004 has one row and CRT sources agree.
|
|
# COMPANY_CODE= # C000004.CODIGO of the active company (when C000004 has several rows and EMISSOR cannot disambiguate)
|
|
# COMPANY_CNPJ= # alternative selector (digits only); a stable, verifiable identifier
|
|
# COMPANY_CRT_SOURCE= # EMISSOR | C000004 — required when the two CRT values disagree (emission programs read EMISSOR)
|