Merge branch 'release/v2.0.0' into develop

This commit is contained in:
Alexey Safronov 2023-11-10 14:22:44 +04:00
commit 6030200e1e
5 changed files with 240 additions and 141 deletions

View File

@ -76,139 +76,231 @@
},
"docservice": {
"coauthor-docs": [
".pptx",
".ppsx",
".xlsx",
".csv",
".docm",
".docx",
".docxf",
".oform",
".txt"
],
"commented-docs": [".docx", ".docxf", ".xlsx", ".pptx"],
"convert-docs": [
".pptm",
".ppt",
".ppsm",
".pps",
".potx",
".potm",
".pot",
".odp",
".fodp",
".otp",
".xlsm",
".xls",
".xltx",
".xltm",
".xlt",
".ods",
".fods",
".ots",
".docm",
".doc",
".dotx",
".dotm",
".dotx",
".oform",
".potm",
".potx",
".ppsm",
".pptm",
".ppsx",
".pptx",
".txt",
".xlsm",
".xlsx",
".xltm",
".xltx"
],
"commented-docs": [
".docm",
".docx",
".docxf",
".dotm",
".dotx",
".potm",
".potx",
".ppsm",
".pptm",
".ppsx",
".pptx",
".xlsm",
".xlsx",
".xltm",
".xltx"
],
"convert-docs": [
".doc",
".dot",
".odt",
".dps",
".dpt",
".epub",
".et",
".ett",
".fb2",
".fodp",
".fods",
".fodt",
".htm",
".html",
".mht",
".mhtml",
".odp",
".ods",
".odt",
".otp",
".ots",
".ott",
".pot",
".pps",
".ppt",
".rtf",
".stw",
".sxc",
".sxi",
".sxw",
".wps",
".wpt",
".xls",
".xlsb",
".xlt",
".xml"
],
"edited-docs": [
".pptx",
".pptm",
".ppt",
".ppsx",
".ppsm",
".pps",
".potx",
".potm",
".pot",
".odp",
".fodp",
".otp",
".xlsx",
".xlsm",
".xls",
".xltx",
".xltm",
".xlt",
".ods",
".fods",
".ots",
".csv",
".doc",
".docm",
".docx",
".docxf",
".oform",
".docm",
".doc",
".dotx",
".dotm",
".dot",
".odt",
".fodt",
".ott",
".txt",
".rtf",
".mht",
".html",
".htm"
],
"encrypted-docs": [".docx", ".docxf", ".xlsx", ".pptx", ".oform"],
"formfilling-docs": [".oform"],
"customfilter-docs": [".xlsx"],
"reviewed-docs": [".docx", ".docxf"],
"viewed-docs": [
".pptx",
".pptm",
".ppt",
".ppsx",
".ppsm",
".pps",
".potx",
".potm",
".pot",
".odp",
".fodp",
".otp",
".gslides",
".xlsx",
".xlsm",
".xls",
".xltx",
".xltm",
".xlt",
".ods",
".fods",
".ots",
".gsheet",
".csv",
".docx",
".docxf",
".oform",
".docm",
".doc",
".dotx",
".dotm",
".dot",
".odt",
".fodt",
".ott",
".gdoc",
".txt",
".rtf",
".mht",
".html",
".htm",
".xml",
".fb2",
".dotx",
".dps",
".dpt",
".epub",
".pdf",
".et",
".ett",
".fb2",
".fodp",
".fods",
".fodt",
".htm",
".html",
".mht",
".mhtml",
".odp",
".ods",
".odt",
".oform",
".otp",
".ots",
".ott",
".pot",
".potm",
".potx",
".pps",
".ppsm",
".ppsx",
".ppt",
".pptm",
".pptx",
".rtf",
".stw",
".sxc",
".sxi",
".sxw",
".txt",
".wps",
".wpt",
".xls",
".xlsb",
".xlsm",
".xlsx",
".xlt",
".xltm",
".xltx",
".xml"
],
"encrypted-docs":
[
".docm",
".docx",
".docxf",
".dotm",
".dotx",
".oform",
".potm",
".potx",
".ppsm",
".pptm",
".ppsx",
".pptx",
".xlsm",
".xlsx",
".xltm",
".xltx"
],
"formfilling-docs": [".oform"],
"customfilter-docs":
[
".xlsm",
".xlsx",
".xltm",
".xltx"
],
"reviewed-docs":
[
".docm",
".docx",
".docxf",
".dotm",
".dotx"
],
"viewed-docs":
[
".csv",
".djvu",
".xps",
".oxps"
".doc",
".docm",
".docx",
".docxf",
".dot",
".dotm",
".dotx",
".dps",
".dpt",
".epub",
".et",
".ett",
".fb2",
".fodp",
".fods",
".fodt",
".gdoc",
".gsheet",
".gslides",
".htm",
".html",
".mht",
".mhtml",
".odp",
".ods",
".odt",
".oform",
".otp",
".ots",
".ott",
".oxps",
".pdf",
".pot",
".potm",
".potx",
".pps",
".ppsm",
".ppsx",
".ppt",
".pptm",
".pptx",
".rtf",
".stw",
".sxc",
".sxi",
".sxw",
".txt",
".wps",
".wpt",
".xls",
".xlsb",
".xlsm",
".xlsx",
".xlt",
".xltm",
".xltx",
".xml",
".xps"
],
"secret": {
"value": "secret",
@ -257,11 +349,14 @@
],
"index": [".pptx", ".xlsx", ".docx"],
"oform": {
"url": "https://cmsoforms.teamlab.info/api/oforms/",
"domain": "https://cmsoforms.teamlab.info",
"path": "/api/oforms/",
"ext": ".oform",
"upload": {
"url": "https://oforms.teamlab.info/api/upload",
"ext": ".docxf"
"domain": "https://oforms.teamlab.info",
"path": "/api/upload",
"ext": ".docxf",
"dashboard": "/dashboard/api"
}
}
},
@ -419,20 +514,24 @@
"style": ["'self'", "'unsafe-inline'"],
"img": ["'self'", "data:", "blob:"],
"frame": ["'self'"],
"fonts": ["'self'", "data:"]
"fonts": ["'self'", "data:"],
"connect": ["'self'"],
"media": ["'self'"]
},
"zendesk": {
"def": ["*.zdassets.com", "*.zopim.com", "*.zendesk.com", "wss:"],
"script": ["*.zdassets.com", "*.zopim.com", "'unsafe-eval'"],
"img": ["*.zopim.io"]
"img": ["*.zopim.io"],
"connect": ["*.zdassets.com", "*.zendesk.com", "*.zopim.com", "wss:"],
"media": ["*.zdassets.com"]
},
"firebase": {
"script": ["*.googleapis.com"],
"def": ["*.googleapis.com"]
"frame": ["personal-teamlab-guru.firebaseapp.com"],
"connect": ["personal-teamlab-guru.firebaseapp.com", "*.googleapis.com"]
},
"oform": {
"img": ["static-oforms.teamlab.info"],
"def": ["cmsoforms.teamlab.info", "oforms.teamlab.info"]
"connect": ["cmsoforms.teamlab.info", "oforms.teamlab.info"]
}
},
"logocolors": [

View File

@ -94,7 +94,8 @@ server {
set $csp "";
access_by_lua '
if ngx.req.get_method() == "GET" then
local accept_header = ngx.req.get_headers()["Accept"]
if ngx.req.get_method() == "GET" and accept_header ~= nil and string.find(accept_header, "html") then
local key = string.format("csp:%s",ngx.var.host)
local redis = require "resty.redis"
local red = redis:new()

View File

@ -46,7 +46,7 @@ with open(file_path, 'wb') as open_file:
st = os.stat(file_path)
os.chmod(file_path, st.st_mode | stat.S_IEXEC)
format = "zip"
format = "tar"
for service in BACKEND_NODEJS_SERVICES:
print(f"== Build {service} project ==")

View File

@ -56,7 +56,6 @@
<ROW Property="MSIFASTINSTALL" MultiBuildValue="DefaultBuild:3#ExeBuild:7"/>
<ROW Property="MYSQLODBCDRIVER" Value="MySQL ODBC 8.0 Unicode Driver"/>
<ROW Property="Manufacturer" Value="Ascensio System SIA"/>
<ROW Property="MsiLogging" MultiBuildValue="DefaultBuild:vp#ExeBuild:vp"/>
<ROW Property="MySQLConnector" Value="MySQL Connector/ODBC 8.0.21 x86"/>
<ROW Property="NEED_REINDEX_ELASTICSEARCH" Value="FALSE" ValueLocId="-"/>
<ROW Property="OPEN_INSTALL_CANCEL_URL" Value="1"/>
@ -1591,7 +1590,7 @@
<ROW PrereqKey="Node.js" DisplayName="Node.js 18.16.1" VersionMin="18.16.0" SetupFileUrl="redist\node-v18.16.1-x64.msi" Location="0" ExactSize="0" Operator="0" ComLine="/quiet" BasicUiComLine="/quiet" NoUiComLine="/quiet" Options="ym" TargetName="Node.js\node-v18.16.1-x64.msi" Builds="ExeBuild"/>
<ROW PrereqKey="OpenResty" DisplayName="OpenResty v1.21.4" VersionMin="1.21.4.2" SetupFileUrl="publish\OpenResty.msi" Location="0" ExactSize="0" Operator="1" ComLine="/quiet" BasicUiComLine="/quiet" NoUiComLine="/quiet" Options="yxm" TargetName="OpenResty\OpenResty.msi"/>
<ROW PrereqKey="PostgreSQL_ODBC" DisplayName="PostgreSQL ODBC Driver v15.0 x64" SetupFileUrl="psqlodbc_15_x64.msi" Location="0" ExactSize="0" WinNTVersions="Windows 9x/ME/NT/2000/XP/Vista/Windows 7/Windows 8 x86/Windows 8.1 x86/Windows 10 x86" Operator="1" ComLine="/quiet" BasicUiComLine="/quiet" NoUiComLine="/quiet" Options="myx" TargetName="psqlodbc_x64.msi"/>
<ROW PrereqKey="PostgresSQL" DisplayName="PostgresSQL v14.0 x64" VersionMin="14.0" SetupFileUrl="postgresql-14.0-1-windows-x64.exe" Location="0" ExactSize="0" WinNTVersions="Windows 9x/ME/NT/2000/XP/Vista/Windows 7/Windows 8 x86/Windows 8.1 x86/Windows 10 x86" Operator="1" ComLine="--unattendedmodeui none --install_runtimes 0 --mode unattended --superaccount &quot;postgres&quot; --superpassword &quot;postgres&quot;" BasicUiComLine="--unattendedmodeui none --install_runtimes 0 --mode unattended --superaccount &quot;postgres&quot; --superpassword &quot;postgres&quot;" NoUiComLine="--unattendedmodeui none --install_runtimes 0 --mode unattended --superaccount &quot;postgres&quot; --superpassword &quot;postgres&quot;" Options="xy" TargetName="postgresql-14.0-1-windows-x64.exe"/>
<ROW PrereqKey="PostgresSQL" DisplayName="PostgreSQL v14.0 x64" VersionMin="14.0" SetupFileUrl="postgresql-14.0-1-windows-x64.exe" Location="0" ExactSize="0" WinNTVersions="Windows 9x/ME/NT/2000/XP/Vista/Windows 7/Windows 8 x86/Windows 8.1 x86/Windows 10 x86" Operator="1" ComLine="--unattendedmodeui none --install_runtimes 0 --mode unattended --superaccount &quot;postgres&quot; --superpassword &quot;postgres&quot;" BasicUiComLine="--unattendedmodeui none --install_runtimes 0 --mode unattended --superaccount &quot;postgres&quot; --superpassword &quot;postgres&quot;" NoUiComLine="--unattendedmodeui none --install_runtimes 0 --mode unattended --superaccount &quot;postgres&quot; --superpassword &quot;postgres&quot;" Options="xy" TargetName="postgresql-14.0-1-windows-x64.exe"/>
<ROW PrereqKey="RabbitMQServer" DisplayName="RabbitMQ v3.12.1 x64" VersionMin="3.12" SetupFileUrl="redist\rabbitmq-server-3.12.1.exe" Location="0" ExactSize="0" WinNTVersions="Windows 9x/ME/NT/2000/XP/Vista/Windows 7/Windows 8 x86/Windows 8.1 x86/Windows 10 x86" Operator="1" ComLine="/S" BasicUiComLine="/S" NoUiComLine="/S" Options="yx" TargetName="RabbitMQ Server\rabbitmq-server-3.12.1.exe" Builds="ExeBuild"/>
<ROW PrereqKey="RedisonWindows" DisplayName="Redis 5.0.10 x64" VersionMin="5.0" SetupFileUrl="redist\Redis-x64-5.0.10.msi" Location="0" ExactSize="0" WinNTVersions="Windows 9x/ME/NT/2000/XP/Vista/Windows 7/Windows 8 x86/Windows 8.1 x86/Windows 10 x86" Operator="1" ComLine="/quiet ADD_INSTALLFOLDER_TO_PATH=1" BasicUiComLine="/quiet ADD_INSTALLFOLDER_TO_PATH=1" NoUiComLine="/quiet ADD_INSTALLFOLDER_TO_PATH=1" Options="yx" TargetName="Redis on Windows\Redis-x64-5.0.10.msi" Builds="ExeBuild"/>
<ROW PrereqKey="RequiredApplication" DisplayName="MySQL Connector/ODBC 8.0.33 x86" VersionMin="8.0.33" SetupFileUrl="https://cdn.mysql.com/Downloads/Connector-ODBC/8.0/mysql-connector-odbc-8.0.33-win32.msi" Location="1" ExactSize="0" Operator="1" ComLine="/quiet" BasicUiComLine="/quiet" NoUiComLine="/quiet" Options="ym" TargetName="MySQL Connector ODBC 8.0.33 x86" Builds="DefaultBuild"/>

View File

@ -55,7 +55,7 @@ del /f /q buildtools\install\win\Files\config\*.dev.json
%sed% "s_\(\"samesite\":\).*,_\1 \"None\",_g" -i buildtools\install\win\Files\config\appsettings.json
::redirectUrl value replacement
%sed% "s/teamlab.info/onlyoffice.com/g" -i buildtools\install\win\Files\config/autofac.consumers.json
%sed% "s/teamlab.info/onlyoffice.com/g" -i buildtools\install\win\Files\config\autofac.consumers.json
%sed% "s_\(\"wrongPortalNameUrl\":\).*,_\1 \"\",_g" -i buildtools\install\win\Files\public\scripts\config.json
REM echo ######## Remove AWSTarget from nlog.config ########