mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[license] Type
Move package type to license. warning_limit_percents string -> int
This commit is contained in:
@ -216,7 +216,8 @@
|
||||
},
|
||||
"license" : {
|
||||
"license_file": "",
|
||||
"warning_limit_percents": "70"
|
||||
"warning_limit_percents": 70,
|
||||
"packageType": 0
|
||||
},
|
||||
"FileConverter": {
|
||||
"converter": {
|
||||
|
||||
@ -45,7 +45,8 @@
|
||||
},
|
||||
"license": {
|
||||
"license_file": "./../../license.lic",
|
||||
"warning_limit_percents": "70"
|
||||
"warning_limit_percents": 70,
|
||||
"packageType": 0
|
||||
},
|
||||
"FileConverter": {
|
||||
"converter": {
|
||||
|
||||
@ -45,7 +45,8 @@
|
||||
},
|
||||
"license": {
|
||||
"license_file": "./../../license.lic",
|
||||
"warning_limit_percents": "70"
|
||||
"warning_limit_percents": 70,
|
||||
"packageType": 0
|
||||
},
|
||||
"FileConverter": {
|
||||
"converter": {
|
||||
|
||||
@ -47,7 +47,8 @@
|
||||
},
|
||||
"license": {
|
||||
"license_file": "/var/www/onlyoffice/documentserver/../Data/license.lic",
|
||||
"warning_limit_percents": "70"
|
||||
"warning_limit_percents": 70,
|
||||
"packageType": 0
|
||||
},
|
||||
"FileConverter": {
|
||||
"converter": {
|
||||
|
||||
@ -47,7 +47,8 @@
|
||||
},
|
||||
"license": {
|
||||
"license_file": "./../../license.lic",
|
||||
"warning_limit_percents": "70"
|
||||
"warning_limit_percents": 70,
|
||||
"packageType": 0
|
||||
},
|
||||
"FileConverter": {
|
||||
"converter": {
|
||||
|
||||
@ -44,7 +44,7 @@ const redisClient = pubsubRedis.getClientRedis();
|
||||
|
||||
const buildDate = '6/29/2016';
|
||||
const oBuildDate = new Date(buildDate);
|
||||
const oPackageType = constants.PACKAGE_TYPE_OS;
|
||||
const oPackageType = configL.get('packageType');
|
||||
|
||||
const cfgRedisPrefix = config.get('services.CoAuthoring.redis.prefix');
|
||||
const redisKeyLicense = cfgRedisPrefix + ((constants.PACKAGE_TYPE_OS === oPackageType) ? constants.REDIS_KEY_LICENSE :
|
||||
|
||||
Reference in New Issue
Block a user