Skip to content

Commit

Permalink
refs #123 - adds domain config generation to docker setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoV-PDMFC committed Nov 10, 2022
1 parent 8919f2c commit 03b8769
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions fgt-api/updateDockerConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ const updateConfigsToMatchEnvironment = async function(){
try {
fs.copyFileSync(path.join(currentPath, `../fgt-bdns/${environment}/apihub.json`),
path.join(currentPath, `../apihub-root/external-volume/config/apihub.json`))

if (!bricksDomain)
console.log("No 'bricksDomain' variable defined. assuming none")
else
fs.writeFileSync(path.join(currentPath, `../apihub-root/external-volume/config/domains/${environment}.json`), JSON.stringify({
"anchoring": {
"type": "FS",
"option": {
"enableBricksLedger": false
},
"commands": {
"addAnchor": "anchor"
}
},
"enable": ["mq"],
"skipOAuth": [
`/bricking/${bricksDomain}/get-brick`
]
}))
} catch (e) {
return reject(e);
}
Expand Down
2 changes: 2 additions & 0 deletions octopus-freeze.json
Original file line number Diff line number Diff line change
Expand Up @@ -1080,3 +1080,5 @@
}
]
}


0 comments on commit 03b8769

Please sign in to comment.