Configuration Reference

A centralized guide for all environment variables used by the Pharos ecosystem.

The Pharos ecosystem is designed to be highly configurable via environment variables, ensuring compatibility across Home Lab, Enterprise, and Sandbox environments.


🖥️ Server Configuration (pharos-server)

VariableDescriptionDefaultImpact
PHAROS_ADDRThe IP and port the server binds to.0.0.0.0:2378Network accessibility.
PHAROS_PORTThe TCP port the server listens on.2378Network accessibility.
PHAROS_TLS_CERT(Mandatory) Path to the SSL/TLS certificate.NoneSecurity (SSL).
PHAROS_TLS_KEY(Mandatory) Path to the SSL/TLS private key.NoneSecurity (SSL).
PHAROS_STORAGE_PATHPath to the JSON file for persistent storage.Unset (Memory)Data persistence.
PHAROS_KEYS_DIRDirectory containing authorized SSH public keys../keysAuthorization.
PHAROS_SECURITY_TIERSecurity mode: open, protected, or scoped.openAccess control.
PHAROS_SYNC_ADDRThe public address used for peer registration.UnsetMulti-server sync.
PHAROS_BOOTSTRAP_PEERAddress of a peer to pull initial data from.UnsetMulti-server sync.
PHAROS_LDAP_URLURL of the LDAP server for Enterprise tier.UnsetExternal Auth.
PHAROS_CPU_THRESHOLDCPU usage percentage for health alerts.90.0Monitoring.
PHAROS_MEM_THRESHOLD_GBMemory usage (GB) for health alerts.1Monitoring.

🛠️ CLI Client Configuration (ph, mdb)

VariableDescriptionDefaultImpact
PHAROS_HOSTHostname or IP of the Pharos server.127.0.0.1Connectivity.
PHAROS_PORTTCP port of the Pharos server.2378Connectivity.
PHAROS_SERVERCombined address (host:port).UnsetConnectivity.
PHAROS_CA_CERTPath to CA certificate for TLS trust.UnsetSecurity.
PHAROS_PRIVATE_KEYPath to SSH private key for authentication.~/.ssh/id_ed25519Authorization.

💓 Pulse Agent Configuration (pharos-pulse)

VariableDescriptionDefaultImpact
PHAROS_SERVERAddress of the Pharos server.127.0.0.1:2378Connectivity.
PHAROS_MACHINE_NAMEOverride hostname for node registration.System HostnameIdentity.
PHAROS_CA_CERTPath to CA certificate for TLS trust.UnsetSecurity.
PHAROS_PRIVATE_KEYPath to SSH private key for authentication.UnsetAuthorization.

🌐 Web Console Configuration (pharos-console-web)

VariableDescriptionDefaultImpact
PHAROS_SERVER_URLURL of the backend Pharos server.https://localhost:2378Backend connectivity.
PHAROS_SANDBOXEnable Sandbox-specific UI hints.falseUX/UI.
PHAROS_TLS_CERTPath to SSL/TLS certificate for Web.UnsetSecurity (HTTPS).
PHAROS_TLS_KEYPath to SSL/TLS private key for Web.UnsetSecurity (HTTPS).
PHAROS_PRIVATE_KEYPrivate key for signing auth challenges.UnsetAuthorization.
PHAROS_PUBLIC_KEYPublic key associated with the private key.UnsetAuthorization.