From 9a5470552e62b44f093ea266d0dfdc4619fb856a Mon Sep 17 00:00:00 2001 From: Adw8 Date: Mon, 21 Oct 2024 14:10:48 +0530 Subject: [PATCH] Add template for snowball config --- ops/configs/snowball-config.toml | 50 ++++++++++++++++++++++++++++++++ ops/deployments-from-scratch.md | 17 ++++------- 2 files changed, 56 insertions(+), 11 deletions(-) create mode 100644 ops/configs/snowball-config.toml diff --git a/ops/configs/snowball-config.toml b/ops/configs/snowball-config.toml new file mode 100644 index 0000000..04389c4 --- /dev/null +++ b/ops/configs/snowball-config.toml @@ -0,0 +1,50 @@ +[server] + host = "0.0.0.0" + port = 8000 + gqlPath = "/graphql" + [server.session] + secret = "" + appOriginUrl = "" + trustProxy = true + domain = "" + +[database] + dbPath = "/data/db/snowball" + +[gitHub] + webhookUrl = "" + [gitHub.oAuth] + clientId = "" + clientSecret = "" + +[google] + clientId = "" + clientSecret = "" + +[turnkey] + apiBaseUrl = "" + apiPrivateKey = "" + apiPublicKey = "" + defaultOrganizationId = "" + +[registryConfig] + fetchDeploymentRecordDelay = 5000 + checkAuctionStatusDelay = 5000 + restEndpoint = "" + gqlEndpoint = "" + chainId = "" + privateKey = "" + bondId = "" + authority = "" + [registryConfig.fee] + gasPrice = "1alnt" + +[auction] + commitFee = "100000" + commitsDuration = "120s" + revealFee = "100000" + revealsDuration = "120s" + denom = "alnt" + +[misc] + projectDomain = "" diff --git a/ops/deployments-from-scratch.md b/ops/deployments-from-scratch.md index 1a2380f..beabeee 100644 --- a/ops/deployments-from-scratch.md +++ b/ops/deployments-from-scratch.md @@ -1015,7 +1015,7 @@ sudo rm -rf snowball-deployment # Remove the existing spec file - rm snowball-spec.yml + rm snowball-deployment-spec.yml ``` ### Setup @@ -1069,20 +1069,15 @@ laconic-so --stack ~/cerc/snowballtools-base-api-stack/stack-orchestrator/stacks/snowballtools-base-backend deploy create --deployment-dir snowball-deployment --spec-file snowball-deployment-spec.yml ``` -* Create a file at `snowball-deployment/data/config/local.toml` with the config for the server: +* Fetch the config template file for the snowball backend: ```bash - [server] - host = "0.0.0.0" - port = 8000 - gqlPath = "/graphql" - [server.session] - secret = "" - appOriginUrl = "https://dashboard.pwa.laconic.com" - trustProxy = false - ... + # Place in snowball deployment directory + wget -O /srv/snowball/snowball-deployment/data/config/local.toml https://git.vdb.to/cerc-io/testnet-laconicd-stack/raw/branch/main/ops/configs/snowball-config.toml ``` +* Update `/srv/snowball/snowball-deployment/data/config/local.toml` with the required values + ### Start * Start the deployment: