Phalanx DB Configuration¶
Phalanx DB is an optional decentralized metadata service that can enhance CLI Debrid by providing distributed data capabilities through Hyperswarm. It runs independently and is not required for CLI Debrid to function.
Service relationships¶
| Classification | Role |
|---|---|
| Dependent | Optional metadata service |
| Depends On | None |
| Exposes UI | No (REST API only) |
Configuration settings in dumb_config.json¶
"phalanx_db": {
"enabled": false,
"process_name": "Phalanx DB",
"repo_owner": "godver3",
"repo_name": "phalanx_db_hyperswarm",
"release_version_enabled": false,
"release_version": "v0.50",
"branch_enabled": false,
"branch": "main",
"suppress_logging": false,
"log_level": "INFO",
"port": 8888,
"auto_update": false,
"auto_update_interval": 24,
"clear_on_update": true,
"exclude_dirs": [
"/phalanx_db/data"
],
"platforms": ["pnpm"],
"command": ["node", "phalanx_db_rest.js"],
"config_dir": "/phalanx_db",
"log_file": "/log/phalanx_db.log",
"env": {}
},
Configuration Key Descriptions¶
enabled: Enables or disables Phalanx DB.process_name: Label used for logging and monitoring.repo_owner/repo_name: Source GitHub repo for updates.release_version_enabled/release_version: Targets a specific version release.branch_enabled/branch: If true, uses a GitHub branch instead of a release.suppress_logging: Suppresses logs from this service.log_level: Verbosity level.port: Port Phalanx DB listens on.auto_update/auto_update_interval: Pull latest changes from GitHub.clear_on_update/exclude_dirs: Defines cleanup behavior and ignored folders.platforms: Required runtime (usuallypnpm+ Node).command: Startup command.config_dir: Root directory for the config and runtime files.log_file: Path to the Phalanx DB log file.env: Environment variables (if any).
Environment variables¶
PORT: REST API port (defaults toport).DEBUG: Debug logging toggle (truewhenlog_levelisDEBUG).
When to Use¶
Phalanx DB is beneficial if you want to:
- Store metadata in a decentralized way
- Leverage peer-to-peer syncing of release data
- Enable extended features in CLI Debrid when Phalanx DB is active
This service is optional and should only be enabled if you intend to use its distributed storage model.
How DUMB sets it up¶
When Phalanx DB starts, DUMB:
- Creates
/phalanx_db/dataand symlinks data subdirectories into the project root - Ensures storage directories like
autobase_storage_v4/dbexist - Sets
PORTandDEBUGenvironment variables - Resolves the latest
phalanx_db_rest_v*.jsfile and uses it as the startup command
Data layout
Runtime data is stored under /phalanx_db/data and symlinked into /phalanx_db so upgrades can preserve data.
Branch / Version Targeting¶
You can control which version or branch is deployed by setting:
branch_enabled: trueand specifying abranch- or
release_version_enabled: trueand specifying arelease_version
Access¶
- REST API:
http://<host>:8888(default)
Logs and data paths¶
- Data root:
/phalanx_db/data - Logs:
/log/phalanx_db.log