diff --git a/config/appsettings.json b/config/appsettings.json index c1b551c20e..3cdae27a9e 100644 --- a/config/appsettings.json +++ b/config/appsettings.json @@ -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", @@ -472,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": { diff --git a/config/nginx/html/custom_401.html b/config/nginx/html/custom_401.html new file mode 100644 index 0000000000..6941f0bab9 --- /dev/null +++ b/config/nginx/html/custom_401.html @@ -0,0 +1,88 @@ + + +
+ + ++ Unauthorized request. To access this file, you must enter a password or + be a registered user. +
++ Forbidden. You don't have permissions to access the requested resource. +
++ Page not found. The server cannot find the requested resource. +
++ The server is currently unable to handle this request. +
+