Add template for snowball config
This commit is contained in:
parent
ed6088549d
commit
67fe5c1e6d
50
ops/configs/snowball-config.toml
Normal file
50
ops/configs/snowball-config.toml
Normal file
@ -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 = ""
|
@ -1234,7 +1234,7 @@
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## snowballtools-base-api-stack
|
## Snowball Backend
|
||||||
|
|
||||||
* Stack: <https://git.vdb.to/cerc-io/snowballtools-base-api-stack/src/branch/main/stack-orchestrator/stacks/snowballtools-base-backend>
|
* Stack: <https://git.vdb.to/cerc-io/snowballtools-base-api-stack/src/branch/main/stack-orchestrator/stacks/snowballtools-base-backend>
|
||||||
|
|
||||||
@ -1255,7 +1255,7 @@
|
|||||||
sudo rm -rf snowball-deployment
|
sudo rm -rf snowball-deployment
|
||||||
|
|
||||||
# Remove the existing spec file
|
# Remove the existing spec file
|
||||||
rm snowball-spec.yml
|
rm snowball-deployment-spec.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
@ -1309,20 +1309,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
|
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
|
```bash
|
||||||
[server]
|
# Place in snowball deployment directory
|
||||||
host = "0.0.0.0"
|
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
|
||||||
port = 8000
|
|
||||||
gqlPath = "/graphql"
|
|
||||||
[server.session]
|
|
||||||
secret = "<redacted>"
|
|
||||||
appOriginUrl = "https://dashboard.pwa.laconic.com"
|
|
||||||
trustProxy = false
|
|
||||||
...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* Update `/srv/snowball/snowball-deployment/data/config/local.toml` with the required values
|
||||||
|
|
||||||
### Start
|
### Start
|
||||||
|
|
||||||
* Start the deployment:
|
* Start the deployment:
|
||||||
|
Loading…
Reference in New Issue
Block a user