export const env = {
    PORT: Number(process.env.PORT || 3000),
    ADMIN_TOKEN: process.env.ADMIN_TOKEN || "admin-dev-token",
    DEVICE_TOKEN: process.env.DEVICE_TOKEN || "device-dev-token",
    TRACE_HEADER: process.env.TRACE_HEADER || "x-request-id",
    IDEMPOTENCY_TTL_MS: Number(process.env.IDEMPOTENCY_TTL_MS || 300000),
    INTEGRATION_WEBHOOK_SECRET: process.env.INTEGRATION_WEBHOOK_SECRET || "dev-callback-secret",
    MQTT_PUBLISH_FORCE_FAIL_ALL: process.env.MQTT_PUBLISH_FORCE_FAIL_ALL || "false",
    MQTT_PUBLISH_FORCE_FAIL_DEVICE_IDS: process.env.MQTT_PUBLISH_FORCE_FAIL_DEVICE_IDS || "",
    MQTT_PUBLISH_DEFAULT_RETRY_INTERVAL_MS: Number(process.env.MQTT_PUBLISH_DEFAULT_RETRY_INTERVAL_MS || 15000),
    DATABASE_URL: process.env.DATABASE_URL || "",
    PGHOST: process.env.PGHOST || "127.0.0.1",
    PGPORT: Number(process.env.PGPORT || 5432),
    PGUSER: process.env.PGUSER || "postgres",
    PGPASSWORD: process.env.PGPASSWORD || "postgres",
    PGDATABASE: process.env.PGDATABASE || "qris_soundbox_platform"
};
