Adjust antivirus feature

This commit is contained in:
lethemanh
2025-04-18 17:05:22 +07:00
parent f0b6315d76
commit 8789b91a7a
17 changed files with 210 additions and 20 deletions
+13 -2
View File
@@ -128,14 +128,25 @@
"featureManageAccess": true,
"defaultCompany": "00000000-0000-4000-0000-000000000000",
"defaultUserQuota": 200000000,
"featureAntivirus": false
"featureAntivirus": false,
"featureAvStatusAllowed": {
"download": ["uploaded", "safe", "scanning", "scan_failed", "malicious"],
"share": ["uploaded", "safe", "scanning", "skipped"],
"rename": ["uploaded", "safe", "scanning"],
"move": ["uploaded", "safe", "scanning"],
"rescan": ["scan_failed"],
"copy_link": ["uploaded", "safe", "scanning"],
"manage_access": ["uploaded", "safe", "scanning", "skipped"],
"version": ["uploaded", "safe", "scanning"]
}
},
"av": {
"host": "av",
"port": 3310,
"debugMode": false,
"timeout": 2000,
"maxFileSize": 26214400
"maxFileSize": 4294967295,
"deleteInfectedFiles": false
},
"applications": {
"grid": [
@@ -149,13 +149,18 @@
"featureDisplayEmail": "ENABLE_FEATURE_DISPLAY_EMAIL",
"featureUserQuota": "ENABLE_FEATURE_USER_QUOTA",
"featureManageAccess": "ENABLE_FEATURE_MANAGE_ACCESS",
"featureAntivirus": "ENABLE_FEATURE_ANTIVIRUS"
"featureAntivirus": "ENABLE_FEATURE_ANTIVIRUS",
"featureAvStatusAllowed": {
"__name": "FEATURE_AV_STATUS_ALLOWED",
"__format": "json"
}
},
"av": {
"host": "AV_HOST",
"port": "AV_PORT",
"debugMode": "AV_DEBUG_MODE",
"timeout": "AV_TIMEOUT",
"maxFileSize": "AV_MAX_FILE_SIZE"
"maxFileSize": "AV_MAX_FILE_SIZE",
"deleteInfectedFiles": "AV_DELETE_INFECTED_FILES"
}
}