Compare commits
9 commits
Author | SHA1 | Date | |
---|---|---|---|
3965e096a9 | |||
808ccddb39 | |||
8924a8c397 | |||
04399adbee | |||
cb9add1df1 | |||
428304bb4b | |||
|
389a7489c3 | ||
|
31256bcee4 | ||
|
edae4a1430 |
5 changed files with 42 additions and 36 deletions
2
.github/workflows/docker-image.yml
vendored
2
.github/workflows/docker-image.yml
vendored
|
@ -21,5 +21,5 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
repository: xbeeant/oo-unlimit
|
repository: xbeeant/oo-unlimit
|
||||||
tags: latest, 7.3.3.50
|
tags: latest, 7.4.0.1
|
||||||
|
|
||||||
|
|
23
Dockerfile
23
Dockerfile
|
@ -1,5 +1,5 @@
|
||||||
ARG product_version=7.3.3
|
ARG product_version=7.4.1
|
||||||
ARG build_number=50
|
ARG build_number=1
|
||||||
ARG oo_root='/var/www/onlyoffice/documentserver'
|
ARG oo_root='/var/www/onlyoffice/documentserver'
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
@ -13,7 +13,7 @@ ENV BUILD_NUMBER=${build_number}
|
||||||
|
|
||||||
ARG build_deps="git make g++ nodejs npm"
|
ARG build_deps="git make g++ nodejs npm"
|
||||||
RUN apt-get update && apt-get install -y ${build_deps}
|
RUN apt-get update && apt-get install -y ${build_deps}
|
||||||
#RUN npm config set registry https://registry.npm.taobao.org
|
# RUN npm config set registry https://registry.npm.taobao.org
|
||||||
RUN npm install -g pkg grunt grunt-cli
|
RUN npm install -g pkg grunt grunt-cli
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
@ -77,3 +77,20 @@ COPY --from=build-stage /build/docservice ${oo_root}/server/DocService/docservic
|
||||||
COPY --from=build-stage /build/web-apps/deploy/web-apps/apps/documenteditor/mobile ${oo_root}/web-apps/apps/documenteditor/mobile
|
COPY --from=build-stage /build/web-apps/deploy/web-apps/apps/documenteditor/mobile ${oo_root}/web-apps/apps/documenteditor/mobile
|
||||||
COPY --from=build-stage /build/web-apps/deploy/web-apps/apps/presentationeditor/mobile ${oo_root}/web-apps/apps/presentationeditor/mobile
|
COPY --from=build-stage /build/web-apps/deploy/web-apps/apps/presentationeditor/mobile ${oo_root}/web-apps/apps/presentationeditor/mobile
|
||||||
COPY --from=build-stage /build/web-apps/deploy/web-apps/apps/spreadsheeteditor/mobile ${oo_root}/web-apps/apps/spreadsheeteditor/mobile
|
COPY --from=build-stage /build/web-apps/deploy/web-apps/apps/spreadsheeteditor/mobile ${oo_root}/web-apps/apps/spreadsheeteditor/mobile
|
||||||
|
|
||||||
|
# 移除字体
|
||||||
|
RUN rm -rf /usr/share/fonts/truetype/dejavu
|
||||||
|
RUN rm -rf /usr/share/fonts/truetype/liberation
|
||||||
|
|
||||||
|
# 导入中文字体
|
||||||
|
ADD ["onlyoffice-chinese-fonts/fonts for oo6/*", "/usr/share/fonts/truetype/custom/"]
|
||||||
|
|
||||||
|
# 修正hightlight js引用问题
|
||||||
|
# RUN sed -i "s/https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/2.2.2\/jquery.min.js/vendor\/jQuery-2.2.2-min\/jquery-v2.2.2-min.js/" /var/www/onlyoffice/documentserver/sdkjs-plugins/highlightcode/index.html
|
||||||
|
|
||||||
|
EXPOSE 80 443
|
||||||
|
|
||||||
|
ARG COMPANY_NAME=onlyoffice
|
||||||
|
VOLUME /var/log/$COMPANY_NAME /var/lib/$COMPANY_NAME /var/www/$COMPANY_NAME/Data /var/lib/postgresql /var/lib/rabbitmq /var/lib/redis /usr/share/fonts/truetype/custom
|
||||||
|
|
||||||
|
ENTRYPOINT ["/app/ds/run-document-server.sh"]
|
1
onlyoffice-chinese-fonts
Submodule
1
onlyoffice-chinese-fonts
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 19ad64ae430e08945fd7007fc790be86a67f444d
|
38
server.patch
38
server.patch
|
@ -1,9 +1,9 @@
|
||||||
diff --git a/Common/sources/constants.js b/Common/sources/constants.js
|
diff --git a/Common/sources/constants.js b/Common/sources/constants.js
|
||||||
index 65d4c6f..39a7e56 100644
|
index 8ddfb47..d41c7e6 100644
|
||||||
--- a/Common/sources/constants.js
|
--- a/Common/sources/constants.js
|
||||||
+++ b/Common/sources/constants.js
|
+++ b/Common/sources/constants.js
|
||||||
@@ -83,7 +83,7 @@ exports.LICENSE_RESULT = {
|
@@ -85,7 +85,7 @@ exports.LICENSE_RESULT = {
|
||||||
UsersViewCountOS: 15
|
NotBefore: 16
|
||||||
};
|
};
|
||||||
|
|
||||||
-exports.LICENSE_CONNECTIONS = 20;
|
-exports.LICENSE_CONNECTIONS = 20;
|
||||||
|
@ -12,7 +12,7 @@ index 65d4c6f..39a7e56 100644
|
||||||
|
|
||||||
exports.AVS_OFFICESTUDIO_FILE_UNKNOWN = 0x0000;
|
exports.AVS_OFFICESTUDIO_FILE_UNKNOWN = 0x0000;
|
||||||
diff --git a/Common/sources/license.js b/Common/sources/license.js
|
diff --git a/Common/sources/license.js b/Common/sources/license.js
|
||||||
index 1b617c6..8fa7b53 100644
|
index 5df8d69..3fd9de1 100644
|
||||||
--- a/Common/sources/license.js
|
--- a/Common/sources/license.js
|
||||||
+++ b/Common/sources/license.js
|
+++ b/Common/sources/license.js
|
||||||
@@ -45,24 +45,24 @@ exports.readLicense = function*() {
|
@@ -45,24 +45,24 @@ exports.readLicense = function*() {
|
||||||
|
@ -20,58 +20,60 @@ index 1b617c6..8fa7b53 100644
|
||||||
type: c_LR.Success,
|
type: c_LR.Success,
|
||||||
light: false,
|
light: false,
|
||||||
- packageType: constants.PACKAGE_TYPE_OS,
|
- packageType: constants.PACKAGE_TYPE_OS,
|
||||||
+ packageType: constants.PACKAGE_TYPE_I,
|
+ packageType: constants.PACKAGE_TYPE_I,
|
||||||
mode: constants.LICENSE_MODE.None,
|
mode: constants.LICENSE_MODE.None,
|
||||||
- branding: false,
|
- branding: false,
|
||||||
+ branding: true,
|
+ branding: true,
|
||||||
connections: constants.LICENSE_CONNECTIONS,
|
connections: constants.LICENSE_CONNECTIONS,
|
||||||
connectionsView: constants.LICENSE_CONNECTIONS,
|
connectionsView: constants.LICENSE_CONNECTIONS,
|
||||||
- customization: false,
|
- customization: false,
|
||||||
- advancedApi: false,
|
- advancedApi: false,
|
||||||
- usersCount: 0,
|
- usersCount: 0,
|
||||||
- usersViewCount: 0,
|
- usersViewCount: 0,
|
||||||
+ customization: true,
|
+ customization: true,
|
||||||
+ advancedApi: true,
|
+ advancedApi: true,
|
||||||
+ usersCount: constants.LICENSE_CONNECTIONS,
|
+ usersCount: constants.LICENSE_CONNECTIONS,
|
||||||
+ usersViewCount: constants.LICENSE_CONNECTIONS,
|
+ usersViewCount: constants.LICENSE_CONNECTIONS,
|
||||||
usersExpire: constants.LICENSE_EXPIRE_USERS_ONE_DAY,
|
usersExpire: constants.LICENSE_EXPIRE_USERS_ONE_DAY,
|
||||||
- hasLicense: false,
|
- hasLicense: false,
|
||||||
- plugins: false,
|
- plugins: false,
|
||||||
+ hasLicense: true,
|
+ hasLicense: true,
|
||||||
+ plugins: true,
|
+ plugins: true,
|
||||||
buildDate: oBuildDate,
|
buildDate: oBuildDate,
|
||||||
startDate: startDate,
|
startDate: startDate,
|
||||||
- endDate: null,
|
- endDate: null,
|
||||||
+ endDate: new Date("2099-01-01T23:59:59.000Z"),
|
+ endDate: new Date("2099-01-01T23:59:59.000Z"),
|
||||||
customerId: "",
|
customerId: "",
|
||||||
- alias: ""
|
- alias: ""
|
||||||
+ alias: "community"
|
+ alias: "community"
|
||||||
}, null];
|
}, null];
|
||||||
};
|
};
|
||||||
|
|
||||||
-exports.packageType = constants.PACKAGE_TYPE_OS;
|
-exports.packageType = constants.PACKAGE_TYPE_OS;
|
||||||
+exports.packageType = constants.PACKAGE_TYPE_I;
|
+exports.packageType = constants.PACKAGE_TYPE_I;
|
||||||
diff --git a/DocService/sources/server.js b/DocService/sources/server.js
|
diff --git a/DocService/sources/server.js b/DocService/sources/server.js
|
||||||
index 5c744f6..edfb423 100644
|
index 6828adb..21374a6 100644
|
||||||
--- a/DocService/sources/server.js
|
--- a/DocService/sources/server.js
|
||||||
+++ b/DocService/sources/server.js
|
+++ b/DocService/sources/server.js
|
||||||
@@ -110,7 +110,6 @@ if (!(cfgTokenEnableBrowser && cfgTokenEnableRequestInbox && cfgTokenEnableReque
|
@@ -111,7 +111,7 @@ if (!(cfgTokenEnableBrowser && cfgTokenEnableRequestInbox && cfgTokenEnableReque
|
||||||
|
|
||||||
if (!tenantManager.isMultitenantMode()) {
|
if (!tenantManager.isMultitenantMode()) {
|
||||||
updateLicense();
|
updateLicense();
|
||||||
- fs.watchFile(cfgLicenseFile, updateLicense);
|
- fs.watchFile(cfgLicenseFile, updateLicense);
|
||||||
|
+ // fs.watchFile(cfgLicenseFile, updateLicense);
|
||||||
setInterval(updateLicense, 86400000);
|
setInterval(updateLicense, 86400000);
|
||||||
}
|
}
|
||||||
|
|
||||||
diff --git a/FileConverter/sources/convertermaster.js b/FileConverter/sources/convertermaster.js
|
diff --git a/FileConverter/sources/convertermaster.js b/FileConverter/sources/convertermaster.js
|
||||||
index 2a0b366..96468f9 100644
|
index e83b71b..bc2ea58 100644
|
||||||
--- a/FileConverter/sources/convertermaster.js
|
--- a/FileConverter/sources/convertermaster.js
|
||||||
+++ b/FileConverter/sources/convertermaster.js
|
+++ b/FileConverter/sources/convertermaster.js
|
||||||
@@ -93,7 +93,6 @@ if (cluster.isMaster) {
|
@@ -93,7 +93,7 @@ if (cluster.isMaster) {
|
||||||
updateLicense();
|
updateLicense();
|
||||||
|
|
||||||
if (!tenantManager.isMultitenantMode()) {
|
if (!tenantManager.isMultitenantMode()) {
|
||||||
- fs.watchFile(cfgLicenseFile, updateLicense);
|
- fs.watchFile(cfgLicenseFile, updateLicense);
|
||||||
|
+ // fs.watchFile(cfgLicenseFile, updateLicense);
|
||||||
setInterval(updateLicense, 86400000);
|
setInterval(updateLicense, 86400000);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,14 +1,3 @@
|
||||||
From 692bef4561ef9978c6b8663dd618211bf526b69f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Beeant <huangxb0512@gmail.com>
|
|
||||||
Date: Sat, 24 Sep 2022 21:39:36 +0800
|
|
||||||
Subject: [PATCH] build: license
|
|
||||||
|
|
||||||
---
|
|
||||||
apps/documenteditor/mobile/src/lib/patch.jsx | 2 +-
|
|
||||||
apps/presentationeditor/mobile/src/lib/patch.jsx | 2 +-
|
|
||||||
apps/spreadsheeteditor/mobile/src/lib/patch.jsx | 2 +-
|
|
||||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/apps/documenteditor/mobile/src/lib/patch.jsx b/apps/documenteditor/mobile/src/lib/patch.jsx
|
diff --git a/apps/documenteditor/mobile/src/lib/patch.jsx b/apps/documenteditor/mobile/src/lib/patch.jsx
|
||||||
index 963aca451..1ee48e856 100644
|
index 963aca451..1ee48e856 100644
|
||||||
--- a/apps/documenteditor/mobile/src/lib/patch.jsx
|
--- a/apps/documenteditor/mobile/src/lib/patch.jsx
|
||||||
|
@ -46,6 +35,3 @@ index ec7b37a2c..bfd879583 100644
|
||||||
+EditorUIController.isSupportEditFeature = () => true;
|
+EditorUIController.isSupportEditFeature = () => true;
|
||||||
|
|
||||||
export default EditorUIController;
|
export default EditorUIController;
|
||||||
--
|
|
||||||
2.31.1.windows.1
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue