Skip to content
GitLab
Explore
Sign in
libre.sh
docker
onlyoffice
Compare revisions
9ebcaf0541ca61fae9da752134902712253ad17a to 9c8da36d7c12b2ddb52832896c23ea21c5a53365
Commits on Source (4)
feat: upgrade to v7.4.1.1
· 6d670a26
Hugo Renard
authored
Oct 13, 2023
6d670a26
feat: v7.5.0.1
· c37ef92b
Hugo Renard
authored
Oct 24, 2023
c37ef92b
fix: add missing config
· 80eaa1a8
Hugo Renard
authored
Oct 24, 2023
to remove when fix upstream
80eaa1a8
feat: bump to v7.5.1.1
· 9c8da36d
Hugo Renard
authored
Dec 26, 2023
9c8da36d
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
9c8da36d
ARG
product_version=7.
3.3
ARG
build_number=
50
ARG
product_version=7.
5.1
ARG
build_number=
1
ARG
oo_root='/var/www/onlyoffice/documentserver'
## Setup
...
...
default-override.json
View file @
9c8da36d
{
"tenants"
:
{
"aggregationTenant"
:
"__aggregation"
},
"services"
:
{
"CoAuthoring"
:
{
"autoAssembly"
:
{
...
...
server.patch
View file @
9c8da36d
diff --git a/Common/sources/constants.js b/Common/sources/constants.js
index
b9c2906..4124680
100644
index
3e8e7aaa..028c0d44
100644
--- a/Common/sources/constants.js
+++ b/Common/sources/constants.js
@@ -8
4,7 +84,7
@@
exports.LICENSE_RESULT = {
UsersViewCountOS
: 1
5
@@ -8
5,8 +85,8
@@
exports.LICENSE_RESULT = {
NotBefore
: 1
6
};
-exports.LICENSE_CONNECTIONS = 20;
-exports.LICENSE_USERS = 3;
+exports.LICENSE_CONNECTIONS = 9999;
+exports.LICENSE_USERS = 200;
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
index
1b617c6..4f5d25f
100644
index
5df8d693..3268abbe
100644
--- a/Common/sources/license.js
+++ b/Common/sources/license.js
@@ -45,23 +45,23 @@
exports.readLicense = function*() {
...
...
@@ -50,46 +52,51 @@ index 1b617c6..4f5d25f 100644
};
diff --git a/Common/sources/tenantManager.js b/Common/sources/tenantManager.js
index
66dbb96..3fc932b
100644
index
9ea972a6..209f1299
100644
--- a/Common/sources/tenantManager.js
+++ b/Common/sources/tenantManager.js
@@ -140,6 +140,10 @@
function getTenantLicense(ctx) {
@@ -255,6 +255,12 @@
function getTenantLicense(ctx) {
res.type = constants.LICENSE_RESULT.Error;
ctx.logger.error('getTenantLicense error: missing "alias" field');
}
} else {
+
} else {
+ // This might need to be changed
+ // xbeeant chose to always return a static object, it might break in multitenant mode ?
+ // Maybe you can use the generation to retrieve the one defined in license.js [res] = yield* license.readLicense(licensePath);
+ // Or it might work just like that.
res = licenseInfo;
+
res = licenseInfo;
}
return res;
});
diff --git a/DocService/sources/server.js b/DocService/sources/server.js
index 7
4a00b0..0c7e4e7
100644
index 7
6303af9..db83741b
100644
--- a/DocService/sources/server.js
+++ b/DocService/sources/server.js
@@ -111,7 +111,6 @@
if (!(cfgTokenEnableBrowser && cfgTokenEnableRequestInbox && cfgTokenEnableReque
if (!tenantManager.isMultitenantMode()) {
updateLicense();
- fs.watchFile(cfgLicenseFile, updateLicense);
setInterval(updateLicense, 86400000);
@@ -109,8 +109,6 @@
if (!(cfgTokenEnableBrowser && cfgTokenEnableRequestInbox && cfgTokenEnableReque
}
updateLicense();
-fs.watchFile(cfgLicenseFile, updateLicense);
-setInterval(updateLicense, 86400000);
if (config.has('services.CoAuthoring.server.static_content')) {
const staticContent = config.get('services.CoAuthoring.server.static_content');
diff --git a/FileConverter/sources/convertermaster.js b/FileConverter/sources/convertermaster.js
index
2a0b366..96468f9
100644
index
46615032..41e54b00
100644
--- a/FileConverter/sources/convertermaster.js
+++ b/FileConverter/sources/convertermaster.js
@@ -9
3,7
+9
3
,6 @@
if (cluster.isMaster) {
updateLicense(
);
@@ -9
1,9
+9
1
,6 @@
if (cluster.isMaster) {
}
);
if (!tenantManager.isMultitenantMode()) {
-
fs.watchFile(cfgLicenseFile, updateLicense);
setInterval(
updateLicense
, 86400000
);
}
updateLicense();
-
- fs.watchFile(cfgLicenseFile,
updateLicense);
-
setInterval(updateLicense, 86400000);
} else {
const converter = require('./converter');
converter.run();
diff --git a/Makefile b/Makefile
index e8e1308..23f7e2e 100644
index e8e1308
f
..23f7e2e
f
100644
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,7 @@
DEBUG = $(BRANDING_DIR)/debug.js
...
...