onlyoffice-document-server/server.patch

96 lines
3.1 KiB
Diff
Raw Normal View History

2022-12-18 05:41:19 +00:00
diff --git a/Common/sources/constants.js b/Common/sources/constants.js
2023-11-13 09:46:49 +00:00
index 3e8e7aaa..aad4d05f 100644
2022-12-18 05:41:19 +00:00
--- a/Common/sources/constants.js
+++ b/Common/sources/constants.js
2023-11-13 09:46:49 +00:00
@@ -85,8 +85,8 @@ exports.LICENSE_RESULT = {
2023-06-15 10:59:20 +08:00
NotBefore: 16
2022-12-18 05:41:19 +00:00
};
-exports.LICENSE_CONNECTIONS = 20;
2023-11-13 09:46:49 +00:00
-exports.LICENSE_USERS = 3;
+exports.LICENSE_CONNECTIONS = 999999;
+exports.LICENSE_USERS = 999999;
2022-12-18 05:41:19 +00:00
exports.LICENSE_EXPIRE_USERS_ONE_DAY = 24 * 60 * 60; // day in seconds
exports.AVS_OFFICESTUDIO_FILE_UNKNOWN = 0x0000;
diff --git a/Common/sources/license.js b/Common/sources/license.js
2023-11-13 09:46:49 +00:00
index 5df8d693..3fd9de14 100644
2022-12-18 05:41:19 +00:00
--- a/Common/sources/license.js
+++ b/Common/sources/license.js
@@ -45,24 +45,24 @@ exports.readLicense = function*() {
count: 1,
type: c_LR.Success,
light: false,
- packageType: constants.PACKAGE_TYPE_OS,
2023-06-15 10:59:20 +08:00
+ packageType: constants.PACKAGE_TYPE_I,
2022-12-18 05:41:19 +00:00
mode: constants.LICENSE_MODE.None,
- branding: false,
2023-06-15 10:59:20 +08:00
+ branding: true,
2022-12-18 05:41:19 +00:00
connections: constants.LICENSE_CONNECTIONS,
connectionsView: constants.LICENSE_CONNECTIONS,
- customization: false,
- advancedApi: false,
- usersCount: 0,
- usersViewCount: 0,
2023-06-15 10:59:20 +08:00
+ customization: true,
+ advancedApi: true,
+ usersCount: constants.LICENSE_CONNECTIONS,
+ usersViewCount: constants.LICENSE_CONNECTIONS,
2022-12-18 05:41:19 +00:00
usersExpire: constants.LICENSE_EXPIRE_USERS_ONE_DAY,
- hasLicense: false,
- plugins: false,
2023-06-15 10:59:20 +08:00
+ hasLicense: true,
+ plugins: true,
2022-12-18 05:41:19 +00:00
buildDate: oBuildDate,
startDate: startDate,
- endDate: null,
2023-06-15 10:59:20 +08:00
+ endDate: new Date("2099-01-01T23:59:59.000Z"),
2022-12-18 05:41:19 +00:00
customerId: "",
- alias: ""
2023-06-15 10:59:20 +08:00
+ alias: "community"
2022-12-18 05:41:19 +00:00
}, null];
};
-exports.packageType = constants.PACKAGE_TYPE_OS;
+exports.packageType = constants.PACKAGE_TYPE_I;
diff --git a/DocService/sources/server.js b/DocService/sources/server.js
2023-11-13 09:46:49 +00:00
index 76303af9..9d2e6888 100644
2022-12-18 05:41:19 +00:00
--- a/DocService/sources/server.js
+++ b/DocService/sources/server.js
2024-08-24 10:33:40 -04:00
@@ -129,7 +129,7 @@ if (!(cfgTokenEnableBrowser && cfgTokenEnableRequestInbox && cfgTokenEnableReque
2022-12-18 05:41:19 +00:00
}
2023-11-13 09:46:49 +00:00
updateLicense();
-fs.watchFile(cfgLicenseFile, updateLicense);
+// fs.watchFile(cfgLicenseFile, updateLicense);
setInterval(updateLicense, 86400000);
2024-08-24 10:33:40 -04:00
try {
2022-12-18 05:41:19 +00:00
diff --git a/FileConverter/sources/convertermaster.js b/FileConverter/sources/convertermaster.js
2023-11-13 09:46:49 +00:00
index 46615032..6ce2d3e6 100644
2022-12-18 05:41:19 +00:00
--- a/FileConverter/sources/convertermaster.js
+++ b/FileConverter/sources/convertermaster.js
2023-11-13 09:46:49 +00:00
@@ -92,7 +92,7 @@ if (cluster.isMaster) {
2022-12-18 05:41:19 +00:00
updateLicense();
2023-11-13 09:46:49 +00:00
- fs.watchFile(cfgLicenseFile, updateLicense);
+ // fs.watchFile(cfgLicenseFile, updateLicense);
setInterval(updateLicense, 86400000);
2022-12-18 05:41:19 +00:00
} else {
2023-11-13 09:46:49 +00:00
const converter = require('./converter');
2022-12-18 05:41:19 +00:00
diff --git a/Makefile b/Makefile
2023-11-13 09:46:49 +00:00
index e8e1308f..23f7e2ef 100644
2022-12-18 05:41:19 +00:00
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,7 @@ DEBUG = $(BRANDING_DIR)/debug.js
.PHONY: all clean install uninstall build-date
.NOTPARALLEL:
-all: $(SPELLCHECKER_DICTIONARIES) $(TOOLS) $(SCHEMA) $(CORE_FONTS) $(DOCUMENT_TEMPLATES) $(LICENSE) $(WELCOME) $(INFO) build-date
+all: $(SCHEMA) $(LICENSE) $(WELCOME) $(INFO) build-date
build-date: $(GRUNT_FILES)
sed "s|\(const buildVersion = \).*|\1'${PRODUCT_VERSION}';|" -i $(COMMON_DEFINES_JS)