aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-03-31 21:32:07 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-03-31 21:32:07 +0300
commit5157dc62fc6bd010e8616ae59b462fd8c58f1d9b (patch)
tree9d8b1889d4003069ee74d638195f9e47778c882f
parent7257ae0bf26f85082c5a5a5ed505a55d49c0d2ac (diff)
downloadarching-kaos-tools-5157dc62fc6bd010e8616ae59b462fd8c58f1d9b.tar.gz
arching-kaos-tools-5157dc62fc6bd010e8616ae59b462fd8c58f1d9b.tar.bz2
arching-kaos-tools-5157dc62fc6bd010e8616ae59b462fd8c58f1d9b.zip
Added two new variables
-rw-r--r--api/config.js8
-rwxr-xr-xconfig.sh3
2 files changed, 7 insertions, 4 deletions
diff --git a/api/config.js b/api/config.js
index f4a1879..84a85b1 100644
--- a/api/config.js
+++ b/api/config.js
@@ -1,7 +1,7 @@
const process = require("process");
const env = process.env;
-module.exports = {
+const config = {
port : 8610,
session : {
secret:'setabigsecrethere'
@@ -16,9 +16,9 @@ module.exports = {
zzchain:env.AK_ZZCHAIN,
binDir:env.AK_BINDIR,
workDir:env.AK_WORKDIR,
- blocksFile : env.AK_WORKDIR+"/zBlocksFile",
- pairsFile : env.AK_WORKDIR+"/pairsFile",
+ blocksFile : env.AK_ZBLOCKSFILE,
+ pairsFile : env.AK_ZPAIRSFILE,
minedBlocksDir: env.AK_MINEDBLOCKSDIR
}
-
+module.exports = config;
diff --git a/config.sh b/config.sh
index 242fe7f..1e72833 100755
--- a/config.sh
+++ b/config.sh
@@ -18,4 +18,7 @@ export AK_ZLIST="$AK_WORKDIR/zlist"
export AK_ZLATEST="$AK_WORKDIR/zlatest"
export AK_LOGSFILE="$AK_WORKDIR/logs"
export AK_FINGERPRINT="$(gpg --list-keys | grep test@test.test -1 | head -n1 | awk '{print $1}')"
+export AK_MINEDBLOCKS="$AK_WORKDIR/mined_blocks/"
+export AK_ZBLOCKSFILE="$AK_WORKDIR/zBlocksFile"
+export AK_ZPAIRSFILE="$AK_WORKDIR/pairsFile"