The application can be configured using the Config
struct.
pub struct Config {
pub bitcoin_network: String,
pub nostr_relay: String,
pub surreal_db_connection: String,
pub data_dir: String,
pub job_runner_initial_delay_seconds: u32,
pub job_runner_check_interval_seconds: u32,
}
It contains the following options:
bitcoin_network
- bitcoin network to use, possible values:mainnet
,regtest
andtestnet
nostr_relay
- nostr relay endpointsurreal_db_connection
- the surreal DB connectiondata_dir
- the data directory root - not used on the Webjob_runner_initial_delay_seconds
- initial delay until cron jobs runjob_runner_check_interval_seconds
- interval in which cron jobs run
let config = {
bitcoin_network: "testnet",
nostr_relay: "wss://bitcr-cloud-run-04-550030097098.europe-west1.run.app",
surreal_db_connection: "indxdb://default",
data_dir: ".",
job_runner_initial_delay_seconds: 1,
job_runner_check_interval_seconds: 600,
};