Merge branch 'develop' into feature/data-migration
This commit is contained in:
commit
e1b2919dda
17
.github/workflows/cron-build.yml
vendored
17
.github/workflows/cron-build.yml
vendored
@ -28,6 +28,9 @@ jobs:
|
||||
matching_branches=${matching_branches#,}
|
||||
echo "json_output=[${matching_branches}]" >> $GITHUB_OUTPUT
|
||||
|
||||
last_branch=$(echo ${matching_branches} | awk -F, '{print $NF}' | sed 's/"//g')
|
||||
echo "last_branch=${last_branch}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Dispatch Action
|
||||
run: |
|
||||
echo "${{ steps.list-branches.outputs.json_output }}"
|
||||
@ -38,3 +41,17 @@ jobs:
|
||||
"https://api.github.com/repos/ONLYOFFICE/DocSpace-buildtools/dispatches" \
|
||||
-H "Accept: application/vnd.github.everest-preview+json" \
|
||||
--data '{"event_type": "cron-trigger-action", "client_payload": { "branches": ${{ steps.list-branches.outputs.json_output }}}}'
|
||||
|
||||
curl \
|
||||
-X POST \
|
||||
-u "${{ secrets.USERNAME}}:${{secrets.TOKEN}}" \
|
||||
https://api.github.com/repos/ONLYOFFICE/DocSpace/actions/workflows/59268961/dispatches \
|
||||
-H "Accept: application/vnd.github.everest-preview+json" \
|
||||
--data '{
|
||||
"ref": "${{ steps.list-branches.outputs.last_branch }}",
|
||||
"inputs": {
|
||||
"branch-buildtools": "${{ steps.list-branches.outputs.last_branch }}",
|
||||
"branch-client": "${{ steps.list-branches.outputs.last_branch }}",
|
||||
"branch-server": "${{ steps.list-branches.outputs.last_branch }}"
|
||||
}
|
||||
}'
|
||||
|
2
.github/workflows/main-build.yml
vendored
2
.github/workflows/main-build.yml
vendored
@ -68,7 +68,7 @@ jobs:
|
||||
--set *.args.BUILD_NUMBER=${BUILD_NUMBER} \
|
||||
--set *.platform=linux/amd64 \
|
||||
--set *.args.PRODUCT_VERSION=${PRODUCT_VERSION} \
|
||||
--set *.args.BUILD_NUMBER=${BUILD_NUMBER} \
|
||||
--set *.args.BUILD_NUMBER=${{github.run_number}} \
|
||||
--push
|
||||
|
||||
echo "version=${DOCKER_TAG}" >> "$GITHUB_OUTPUT"
|
||||
|
@ -65,249 +65,17 @@
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"thirdparty": {
|
||||
"enable": [
|
||||
"box",
|
||||
"dropboxv2",
|
||||
"docusign",
|
||||
"google",
|
||||
"onedrive",
|
||||
"nextcloud",
|
||||
"owncloud",
|
||||
"webdav",
|
||||
"kdrive"
|
||||
]
|
||||
},
|
||||
"thirdparty": { "enable": ["box", "dropboxv2", "docusign", "google", "onedrive", "nextcloud", "owncloud", "webdav", "kdrive" ] },
|
||||
"docservice": {
|
||||
"coauthor-docs": [
|
||||
".csv",
|
||||
".docm",
|
||||
".docx",
|
||||
".docxf",
|
||||
".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",
|
||||
".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": [
|
||||
".csv",
|
||||
".doc",
|
||||
".docm",
|
||||
".docx",
|
||||
".docxf",
|
||||
".dot",
|
||||
".dotm",
|
||||
".dotx",
|
||||
".dps",
|
||||
".dpt",
|
||||
".epub",
|
||||
".et",
|
||||
".ett",
|
||||
".fb2",
|
||||
".fodp",
|
||||
".fods",
|
||||
".fodt",
|
||||
".htm",
|
||||
".html",
|
||||
".mht",
|
||||
".mhtml",
|
||||
".odp",
|
||||
".ods",
|
||||
".odt",
|
||||
".oform",
|
||||
".otp",
|
||||
".ots",
|
||||
".ott",
|
||||
".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"
|
||||
],
|
||||
"encrypted-docs":
|
||||
[
|
||||
".docm",
|
||||
".docx",
|
||||
".docxf",
|
||||
".dotm",
|
||||
".dotx",
|
||||
".oform",
|
||||
".potm",
|
||||
".potx",
|
||||
".ppsm",
|
||||
".pptm",
|
||||
".ppsx",
|
||||
".pptx",
|
||||
".xlsm",
|
||||
".xlsx",
|
||||
".xltm",
|
||||
".xltx",
|
||||
".pdf"
|
||||
],
|
||||
"coauthor-docs": [ ".csv", ".docm", ".docx", ".docxf", ".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", ".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": [ ".csv", ".doc", ".docm", ".docx", ".docxf", ".dot", ".dotm", ".dotx", ".dps", ".dpt", ".epub", ".et", ".ett", ".fb2", ".fodp", ".fods", ".fodt", ".htm", ".html", ".mht", ".mhtml", ".odp", ".ods", ".odt", ".oform", ".otp", ".ots", ".ott", ".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" ],
|
||||
"encrypted-docs": [ ".docm", ".docx", ".docxf", ".dotm", ".dotx", ".oform", ".potm", ".potx", ".ppsm", ".pptm", ".ppsx", ".pptx", ".xlsm", ".xlsx", ".xltm", ".xltx", ".pdf" ],
|
||||
"formfilling-docs": [".pdf"],
|
||||
"customfilter-docs":
|
||||
[
|
||||
".xlsm",
|
||||
".xlsx",
|
||||
".xltm",
|
||||
".xltx"
|
||||
],
|
||||
"reviewed-docs":
|
||||
[
|
||||
".docm",
|
||||
".docx",
|
||||
".docxf",
|
||||
".dotm",
|
||||
".dotx"
|
||||
],
|
||||
"viewed-docs":
|
||||
[
|
||||
".csv",
|
||||
".djvu",
|
||||
".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"
|
||||
],
|
||||
"customfilter-docs": [ ".xlsm", ".xlsx", ".xltm", ".xltx" ],
|
||||
"reviewed-docs": [ ".docm", ".docx", ".docxf", ".dotm", ".dotx" ],
|
||||
"viewed-docs": [ ".csv", ".djvu", ".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",
|
||||
"header": "AuthorizationJwt"
|
||||
@ -326,33 +94,8 @@
|
||||
"chunk-size": 10485760,
|
||||
"url": "/"
|
||||
},
|
||||
"viewed-images": [
|
||||
".svg",
|
||||
".bmp",
|
||||
".gif",
|
||||
".jpeg",
|
||||
".jpg",
|
||||
".png",
|
||||
".ico",
|
||||
".tif",
|
||||
".tiff",
|
||||
".webp"
|
||||
],
|
||||
"viewed-media": [
|
||||
".aac",
|
||||
".flac",
|
||||
".m4a",
|
||||
".mp3",
|
||||
".oga",
|
||||
".ogg",
|
||||
".wav",
|
||||
".f4v",
|
||||
".m4v",
|
||||
".mov",
|
||||
".mp4",
|
||||
".ogv",
|
||||
".webm"
|
||||
],
|
||||
"viewed-images": [ ".svg", ".bmp", ".gif", ".jpeg", ".jpg", ".png", ".ico", ".tif", ".tiff", ".webp" ],
|
||||
"viewed-media": [ ".aac", ".flac", ".m4a", ".mp3", ".oga", ".ogg", ".wav", ".f4v", ".m4v", ".mov", ".mp4", ".ogv", ".webm" ],
|
||||
"index": [".pptx", ".xlsx", ".docx"],
|
||||
"oform": {
|
||||
"domain": "https://cmsoforms.teamlab.info",
|
||||
@ -394,6 +137,7 @@
|
||||
"documentation-email": "documentation@onlyoffice.com",
|
||||
"max-upload-size": 5242880,
|
||||
"zendesk-key": "",
|
||||
"tagmanager-id": "",
|
||||
"samesite": "",
|
||||
"sso": {
|
||||
"saml": {
|
||||
@ -471,47 +215,16 @@
|
||||
"thumbnail": {
|
||||
"maxDegreeOfParallelism": 1,
|
||||
"sizes": [
|
||||
{
|
||||
"height": 156,
|
||||
"width": 216
|
||||
},
|
||||
{
|
||||
"height": 156,
|
||||
"width": 240
|
||||
},
|
||||
{
|
||||
"height": 156,
|
||||
"width": 264
|
||||
},
|
||||
{
|
||||
"height": 156,
|
||||
"width": 288
|
||||
},
|
||||
{
|
||||
"height": 156,
|
||||
"width": 312
|
||||
},
|
||||
{
|
||||
"height": 156,
|
||||
"width": 336
|
||||
},
|
||||
{
|
||||
"height": 156,
|
||||
"width": 360
|
||||
},
|
||||
{
|
||||
"height": 156,
|
||||
"width": 400
|
||||
},
|
||||
{
|
||||
"height": 156,
|
||||
"width": 440
|
||||
},
|
||||
{
|
||||
"height": 720,
|
||||
"width": 1280,
|
||||
"resizeMode": "Max"
|
||||
}
|
||||
{ "height": 156, "width": 216 },
|
||||
{ "height": 156, "width": 240 },
|
||||
{ "height": 156, "width": 264 },
|
||||
{ "height": 156, "width": 288 },
|
||||
{ "height": 156, "width": 312 },
|
||||
{ "height": 156, "width": 336 },
|
||||
{ "height": 156, "width": 360 },
|
||||
{ "height": 156, "width": 400 },
|
||||
{ "height": 156, "width": 440 },
|
||||
{ "height": 720, "width": 1280, "resizeMode": "Max" }
|
||||
]
|
||||
},
|
||||
"csp": {
|
||||
@ -596,5 +309,15 @@
|
||||
"fd00::/8",
|
||||
"fe80::/64"
|
||||
]
|
||||
},
|
||||
"openApi": {
|
||||
"enable": true,
|
||||
"enableUI": true,
|
||||
"endpoints": {
|
||||
"asc.web.api": "/openapi/asc.web.api/common.yaml",
|
||||
"asc.people": "/openapi/asc.people/common.yaml",
|
||||
"asc.files": "/openapi/asc.files/common.yaml",
|
||||
"asc.data.backup": "/openapi/asc.data.backup/common.yaml"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
88
config/nginx/html/custom_401.html
Normal file
88
config/nginx/html/custom_401.html
Normal file
@ -0,0 +1,88 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>401 Error Page</title>
|
||||
<style>
|
||||
body,
|
||||
html {
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.error-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
cursor: default;
|
||||
width: auto;
|
||||
height: 100vh;
|
||||
overflow-x: hidden;
|
||||
margin: 0px auto;
|
||||
padding-top: 36px;
|
||||
border: 0px;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error-image {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.error-header {
|
||||
font-size: 23px;
|
||||
line-height: 28px;
|
||||
font-weight: 700;
|
||||
color: #333333;
|
||||
margin: 0px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
font-weight: 400;
|
||||
color: #555f65;
|
||||
margin: 0px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.error-container {
|
||||
width: 343px;
|
||||
}
|
||||
.error-image {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
max-width: 287px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-container">
|
||||
<img
|
||||
src="/static/images/error401.svg"
|
||||
alt="Error Character"
|
||||
class="error-image"
|
||||
/>
|
||||
<h1 class="error-header">401 Error!</h1>
|
||||
<p class="error-text">
|
||||
Unauthorized request. To access this file, you must enter a password or
|
||||
be a registered user.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
87
config/nginx/html/custom_403.html
Normal file
87
config/nginx/html/custom_403.html
Normal file
@ -0,0 +1,87 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>403 Error Page</title>
|
||||
<style>
|
||||
body,
|
||||
html {
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.error-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
cursor: default;
|
||||
width: auto;
|
||||
height: 100vh;
|
||||
overflow-x: hidden;
|
||||
margin: 0px auto;
|
||||
padding-top: 36px;
|
||||
border: 0px;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error-image {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.error-header {
|
||||
font-size: 23px;
|
||||
line-height: 28px;
|
||||
font-weight: 700;
|
||||
color: #333333;
|
||||
margin: 0px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
font-weight: 400;
|
||||
color: #555f65;
|
||||
margin: 0px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.error-container {
|
||||
width: 343px;
|
||||
}
|
||||
.error-image {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
max-width: 287px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-container">
|
||||
<img
|
||||
src="/static/images/error403.svg"
|
||||
alt="Error Character"
|
||||
class="error-image"
|
||||
/>
|
||||
<h1 class="error-header">403 Error!</h1>
|
||||
<p class="error-text">
|
||||
Forbidden. You don't have permissions to access the requested resource.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
87
config/nginx/html/custom_404.html
Normal file
87
config/nginx/html/custom_404.html
Normal file
@ -0,0 +1,87 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>404 Error Page</title>
|
||||
<style>
|
||||
body,
|
||||
html {
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.error-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
cursor: default;
|
||||
width: auto;
|
||||
height: 100vh;
|
||||
overflow-x: hidden;
|
||||
margin: 0px auto;
|
||||
padding-top: 36px;
|
||||
border: 0px;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error-image {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.error-header {
|
||||
font-size: 23px;
|
||||
line-height: 28px;
|
||||
font-weight: 700;
|
||||
color: #333333;
|
||||
margin: 0px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
font-weight: 400;
|
||||
color: #555f65;
|
||||
margin: 0px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.error-container {
|
||||
width: 343px;
|
||||
}
|
||||
.error-image {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
max-width: 287px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-container">
|
||||
<img
|
||||
src="/static/images/error404.svg"
|
||||
alt="Error Character"
|
||||
class="error-image"
|
||||
/>
|
||||
<h1 class="error-header">404 Error!</h1>
|
||||
<p class="error-text">
|
||||
Page not found. The server cannot find the requested resource.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
87
config/nginx/html/custom_50x.html
Normal file
87
config/nginx/html/custom_50x.html
Normal file
@ -0,0 +1,87 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>500 Error Page</title>
|
||||
<style>
|
||||
body,
|
||||
html {
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
font-family: "Open Sans", Arial, sans-serif;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.error-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
cursor: default;
|
||||
width: auto;
|
||||
height: 100vh;
|
||||
overflow-x: hidden;
|
||||
margin: 0px auto;
|
||||
padding-top: 36px;
|
||||
border: 0px;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error-image {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.error-header {
|
||||
font-size: 23px;
|
||||
line-height: 28px;
|
||||
font-weight: 700;
|
||||
color: #333333;
|
||||
margin: 0px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
font-weight: 400;
|
||||
color: #555f65;
|
||||
margin: 0px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.error-container {
|
||||
width: 343px;
|
||||
}
|
||||
.error-image {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
max-width: 287px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="error-container">
|
||||
<img
|
||||
src="/static/images/error500.svg"
|
||||
alt="Error Character"
|
||||
class="error-image"
|
||||
/>
|
||||
<h1 class="error-header">500 Error!</h1>
|
||||
<p class="error-text">
|
||||
The server is currently unable to handle this request.
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -44,8 +44,7 @@ map $request_uri $header_x_frame_options {
|
||||
|
||||
map $request_uri $cache_control {
|
||||
default "no-cache, no-store, no-transform";
|
||||
~*\/(filehandler\.ashx\?action=(thumb|preview))|\/(storage\/room_logos\/root\/|storage\/userPhotos\/root\/) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||
~*\/(api\/2\.0.*|storage|login\.ashx|filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts\/api\.js|static\/scripts\/api\.poly\.js) "no-cache, no-store, no-transform";
|
||||
~*\/(filehandler\.ashx\?action=(thumb|preview))|\/(storage\/room_logos\/root\/.*\?hash.*|storage\/userPhotos\/root\/.*\?hash.*) "must-revalidate, no-transform, immutable, max-age=31536000"; ~*\/(api\/2\.0.*|storage|login\.ashx|filehandler\.ashx|ChunkedUploader.ashx|ThirdPartyAppHandler|apisystem|sh|remoteEntry\.js|debuginfo\.md|static\/scripts\/api\.js|static\/scripts\/api\.poly\.js) "no-cache, no-store, no-transform";
|
||||
~*\/(images|favicon.ico.*)|\.(js|woff|woff2|css)|(locales.*\.json) "must-revalidate, no-transform, immutable, max-age=31536000";
|
||||
}
|
||||
|
||||
@ -268,6 +267,26 @@ server {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
}
|
||||
|
||||
location /openapi {
|
||||
proxy_pass http://127.0.0.1:5003;
|
||||
|
||||
location ~*/asc.web.api {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
}
|
||||
|
||||
location ~*/asc.people {
|
||||
proxy_pass http://127.0.0.1:5004;
|
||||
}
|
||||
|
||||
location ~*/asc.files {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
}
|
||||
|
||||
location ~*/asc.data.backup {
|
||||
proxy_pass http://127.0.0.1:5012;
|
||||
}
|
||||
}
|
||||
|
||||
location /api/2.0 {
|
||||
location ~* /(files|privacyroom) {
|
||||
proxy_pass http://127.0.0.1:5007;
|
||||
@ -363,4 +382,28 @@ server {
|
||||
rewrite /healthchecks/(.*)$ /$1 break;
|
||||
proxy_pass http://127.0.0.1:5033;
|
||||
}
|
||||
|
||||
error_page 401 /custom_401.html;
|
||||
location = /custom_401.html {
|
||||
root /etc/nginx/html;
|
||||
internal;
|
||||
}
|
||||
|
||||
error_page 403 /custom_403.html;
|
||||
location = /custom_403.html {
|
||||
root /etc/nginx/html;
|
||||
internal;
|
||||
}
|
||||
|
||||
error_page 404 /custom_404.html;
|
||||
location = /custom_404.html {
|
||||
root /etc/nginx/html;
|
||||
internal;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /custom_50x.html;
|
||||
location = /custom_50x.html {
|
||||
root /etc/nginx/html;
|
||||
internal;
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
## COPY PUBLIC ##
|
||||
debian/build/buildtools/install/common/{{product}}-ssl-setup usr/bin
|
||||
debian/build/buildtools/install/docker/config/nginx/templates/*.template etc/onlyoffice/{{product}}/openresty
|
||||
debian/build/buildtools/config/nginx/html/*.html etc/openresty/html
|
||||
debian/build/buildtools/install/docker/config/nginx/onlyoffice* etc/openresty/conf.d
|
||||
debian/build/buildtools/config/nginx/onlyoffice*.conf etc/openresty/conf.d
|
||||
debian/build/buildtools/install/docker/config/nginx/letsencrypt* etc/openresty/includes
|
||||
|
@ -15,6 +15,7 @@ RUN find config/ -maxdepth 1 -name "*.json" | grep -v test | grep -v dev | xargs
|
||||
tar -C "/app/onlyoffice/" -xvf config.tar && \
|
||||
cp config/*.config /app/onlyoffice/config/ && \
|
||||
mkdir -p /etc/nginx/conf.d && cp -f config/nginx/onlyoffice*.conf /etc/nginx/conf.d/ && \
|
||||
mkdir -p /etc/nginx/html && cp -f config/nginx/html/* /etc/nginx/html/ && \
|
||||
mkdir -p /etc/nginx/includes/ && cp -f config/nginx/includes/onlyoffice*.conf /etc/nginx/includes/ && \
|
||||
sed -i "s/\"number\".*,/\"number\": \"${PRODUCT_VERSION}.${BUILD_NUMBER}\",/g" /app/onlyoffice/config/appsettings.json && \
|
||||
sed -e 's/#//' -i /etc/nginx/conf.d/onlyoffice.conf
|
||||
@ -92,6 +93,7 @@ RUN apt-get -y update && \
|
||||
|
||||
# copy static services files and config values
|
||||
COPY --from=base /etc/nginx/conf.d /etc/nginx/conf.d
|
||||
COPY --from=base /etc/nginx/html /etc/nginx/html
|
||||
|
||||
COPY /buildtools/install/docker/config/nginx/docker-entrypoint.sh /docker-entrypoint.sh
|
||||
COPY /buildtools/install/docker/config/nginx/docker-entrypoint.d /docker-entrypoint.d
|
||||
|
@ -76,6 +76,7 @@
|
||||
%defattr(-, onlyoffice, onlyoffice, -)
|
||||
%config %{_sysconfdir}/openresty/includes/*
|
||||
%config %{_sysconfdir}/openresty/conf.d/*
|
||||
%config %{_sysconfdir}/openresty/html/*
|
||||
%attr(744, root, root) %{_bindir}/%{product}-ssl-setup
|
||||
%config %{_sysconfdir}/onlyoffice/%{product}/openresty/nginx.conf.template
|
||||
%dir %{_sysconfdir}/onlyoffice/
|
||||
|
@ -64,4 +64,5 @@ cp -rf %{_builddir}/buildtools/install/common/%{product}-ssl-setup "%{buildroot}
|
||||
cp -rf %{_builddir}/buildtools/install/common/%{product}-configuration "%{buildroot}%{_bindir}/%{product}-configuration"
|
||||
cp -rf %{_builddir}/buildtools/config/nginx/onlyoffice*.conf "%{buildroot}%{_sysconfdir}/openresty/conf.d/"
|
||||
cp -rf %{_builddir}/buildtools/config/nginx/includes/onlyoffice*.conf "%{buildroot}%{_sysconfdir}/openresty/includes/"
|
||||
cp -rf %{_builddir}/buildtools/config/nginx/html/*.html "%{buildroot}%{_sysconfdir}/openresty/html/"
|
||||
cp -rf %{_builddir}/buildtools/config/* "%{buildroot}%{_sysconfdir}/onlyoffice/%{product}/"
|
||||
|
Loading…
Reference in New Issue
Block a user