File tree 2 files changed +5
-1
lines changed
packages/plugin-tee-log/src/services
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -445,6 +445,7 @@ SQUID_API_THROTTLE_INTERVAL=1000 # Default: 1000; Used to throttle API calls to
445
445
# Defaults to OFF if not specified
446
446
TEE_MODE = OFF # LOCAL | DOCKER | PRODUCTION
447
447
WALLET_SECRET_SALT = # ONLY define if you want to use TEE Plugin, otherwise it will throw errors
448
+ TEE_LOG_DB_PATH = # Custom path for TEE Log database, default: ./data/tee_log.sqlite
448
449
449
450
# TEE Verifiable Log Configuration
450
451
VLOG = # true/false; if you want to use TEE Verifiable Log, set this to "true"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import Database from "better-sqlite3";
7
7
import path from "path" ;
8
8
9
9
export class TeeLogService extends Service implements ITeeLogService {
10
- private readonly dbPath = path . resolve ( "agent/data/tee_log.sqlite" ) ;
10
+ private dbPath : string ;
11
11
12
12
private initialized = false ;
13
13
private enableTeeLog = false ;
@@ -62,6 +62,9 @@ export class TeeLogService extends Service implements ITeeLogService {
62
62
throw new Error ( "Invalid TEE configuration." ) ;
63
63
}
64
64
65
+ const dbPathSetting = runtime . getSetting ( "TEE_LOG_DB_PATH" ) ;
66
+ this . dbPath = dbPathSetting || path . resolve ( "data/tee_log.sqlite" ) ;
67
+
65
68
const db = new Database ( this . dbPath ) ;
66
69
this . teeLogDAO = new SqliteTeeLogDAO ( db ) ;
67
70
await this . teeLogDAO . initialize ( ) ;
You can’t perform that action at this time.
0 commit comments