{
    "port": 9000,
    "serveStatic": true,
    "allowCORS": false,
    "metaKey": "0e6a8e3305ae7843e3e976cd3433ae6cb31c893c1c218502e08982ad2f33e07b",
    "usersPerDoc": 100, // max user allowed to edit per document, 10-1000
    "database": {
        "use": "sqlite",
        "opUse": "database", // memory, database
        "mysql": {
            "host": "localhost",
            "port": 3306,
            "user": "root",
            "password": "root",
            "database": "ot",
            "connectionLimit": 100,
            "realdb": "mysql" // mysql, dm
        },
        "sqlite": {
            "dir": "./store/loki",
            "database": "wizot"
        }
    },
    "storage": {
        "objectStorage": "none", // none, obs, cos
        "migration": {
            "schedule": "*/30 * * * *",
            "age": "7d",
            "highWaterMark": 80,
            "lowWaterMark": 70
        },
        "file": {
            "dir": "./store/files",
            "threshold": "20mb" // 配置了objectStorage，并且文件大于这个大小，就不在本地存储，只在对象存储上存
        },
        "cos": {
            "bucket": "123",
            "region": "ap-beijing",
            "secretId": "123",
            "secretKey": "123",
            "enablePreview": true
        },
        "obs": {
            "bucket": "editor",
            "url": "https://obs.cn-east-2.myhuaweicloud.com",
            "secretId": "123",
            "secretKey": "123",
            "enablePreview": false
        },
        "oss": {
            "bucket": "live-editor",
            "region": "oss-cn-beijing",
            "secretId": "123",
            "secretKey": "123",
            "internal": false,
            "enablePreview": true
        }
    },
    "backend": {
        "milestone": {
            "enable": true,
            "interval": 100,
            "timeout": 30
        },
        "webhook" : {
            "enable": false,    // enable webhook?
            "latestVersionDelay": 10, // in seconds
            "latestVersionURL": "http://localhost:7000", // webhook address (send document data to search engine)
            "customMessageURL": "http://localhost:7000/cutomMessage", // receive custom message
            "userChangeURL": "http://localhost:8000/userJoin",
            "newVersionURL": "http://localhost:8000/newversion",
            "commentURL": ["http://localhost:8000/commentURL"]
        },
        "snapshots": {
            "memoryCacheSize": 2000
        },
        "ops": {
            "keep": 10000,
            "expire": 3600
        },
        "rainbow": {
            "colors": 16,
            "timeout": 7200
        }
    },
    "upload": {
        "images": {
            "maxSize": "10mb",
            "allowedExts": [".jpg", ".jpeg", ".gif", ".png", ".svg"]
        },
        "files": {
            "maxSize": "1000mb",
            "allowedExts": [".doc", ".docx", ".ppt", ".pptx", ".xls", ".xlsx", ".pdf", ".zip", ".rar", ".mp4", ".mov", ".m4a"]
        }
    },
    "convert": {
        "chromiumPath": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
        "previewURL": "http://{address}:{port}/printpreview/?id={docId}&appId={appId}&command=print&token={token}",
        "wordImportURL": "http://localhost:7000"
    }
}
