@@ -6,4 +6,3 @@ ALLOWED_ORIGINS=innei.ren,www.innei.ren
|
|||||||
# must be 64bit
|
# must be 64bit
|
||||||
ENCRYPT_KEY=593f62860255feb0a914534a43814b9809cc7534da7f5485cd2e3d3c8609acab
|
ENCRYPT_KEY=593f62860255feb0a914534a43814b9809cc7534da7f5485cd2e3d3c8609acab
|
||||||
ENCRYPT_ENABLE=false
|
ENCRYPT_ENABLE=false
|
||||||
CBOR_NATIVE_ACCELERATION_DISABLED=true
|
|
||||||
|
|||||||
@@ -21,11 +21,6 @@ module.exports = {
|
|||||||
NODE_PATH: nodePath,
|
NODE_PATH: nodePath,
|
||||||
MX_ENCRYPT_KEY: process.env.MX_ENCRYPT_KEY,
|
MX_ENCRYPT_KEY: process.env.MX_ENCRYPT_KEY,
|
||||||
PORT: process.env.PORT,
|
PORT: process.env.PORT,
|
||||||
|
|
||||||
// https://github.com/kriszyp/cbor-x/blob/master/node-index.js#L16 https://github.com/kriszyp/cbor-x/blob/master/node-index.js#L10
|
|
||||||
// ncc not support runtime require so disable ACCELERATION
|
|
||||||
|
|
||||||
CBOR_NATIVE_ACCELERATION_DISABLED: true,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -55,10 +55,15 @@ function registerGlobal() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function nodeEnvInjection() {
|
||||||
|
// # https://github.com/kriszyp/cbor-x/blob/master/node-index.js#L16 https://github.com/kriszyp/cbor-x/blob/master/node-index.js#L10
|
||||||
|
// # ncc not support runtime require so disable ACCELERATION
|
||||||
|
process.env['CBOR_NATIVE_ACCELERATION_DISABLED'] = '1'
|
||||||
|
}
|
||||||
|
|
||||||
export function register() {
|
export function register() {
|
||||||
registerGlobal()
|
registerGlobal()
|
||||||
|
nodeEnvInjection()
|
||||||
registerJSONGlobal()
|
registerJSONGlobal()
|
||||||
|
|
||||||
mkdirs()
|
mkdirs()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ services:
|
|||||||
- JWT_SECRET
|
- JWT_SECRET
|
||||||
- ENCRYPT_KEY
|
- ENCRYPT_KEY
|
||||||
- ENCRYPT_ENABLE
|
- ENCRYPT_ENABLE
|
||||||
- CBOR_NATIVE_ACCELERATION_DISABLED
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/mx-space:/root/.mx-space
|
- ./data/mx-space:/root/.mx-space
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user