Crate hashtree_config

Crate hashtree_config 

Source
Expand description

Shared configuration for hashtree tools

Reads from ~/.hashtree/config.toml

Structs§

BlossomConfig
File server (blossom) configuration
Config
Top-level config structure
NostrConfig
Nostr relay configuration
S3Config
S3-compatible storage configuration
ServerConfig
Server configuration
StorageConfig
Storage configuration
SyncConfig
Background sync configuration

Constants§

DEFAULT_READ_SERVERS
Default read-only file servers
DEFAULT_RELAYS
Default nostr relays
DEFAULT_WRITE_SERVERS
Default write-enabled file servers

Functions§

get_auth_cookie_path
Get the auth cookie path (~/.hashtree/auth.cookie)
get_config_path
Get the config file path (~/.hashtree/config.toml)
get_data_dir
Get the data directory from config (defaults to ~/.hashtree/data) Can be overridden with HTREE_DATA_DIR environment variable
get_hashtree_dir
Get the hashtree directory (~/.hashtree)
get_keys_path
Get the keys file path (~/.hashtree/keys)