# PostgreSQL connection string DATABASE_URL=postgres://mmapp:mmapp@127.0.0.1:5432/mmapp # SQLite file used only for one-shot boot ETL (empty PG + existing mikrotik.db) DATABASE_PATH=./mikrotik.db # SQLITE_IMPORT_FULL_HISTORY=true # Port for the Fastify server PORT=8000 # Allowed CORS origin (Next.js frontend) CORS_ORIGIN=http://localhost:3000 # Portal SSO (false = open API for local/dev) AUTH_REQUIRED=false # Same HS256 secret as auth-portal JWT_SECRET when AUTH_REQUIRED=true AUTH_JWT_SECRET=dev-secret-change-me AUTH_ISSUER=https://auth.shnt.top AUTH_PORTAL_URL=http://localhost:5175