text: /* eslint-disable no-irregular-whitespace */
  const config = {
    /**
     * You can use this tool http://heymind.github.io/tools/microsoft-graph-api-auth
     * to get following params: client_id, client_secret, refresh_token & redirect_uri.
     */
    refresh_token: REFRESH_TOKEN,
    client_id: '0521bbb1-12eb-44fe-bbc4-79154c44c45b',
    client_secret: CLIENT_SECRET,
    redirect_uri: 'https://heymind.github.io/tools/microsoft-graph-api-auth',
  
    /**
     * The base path for indexing, all files and subfolders are public by this tool. For example: `/Public`.
     */
    base: '/CF',
  
    /**
     * Feature: add OneDriveCN (21Vianet) support
     * Usage: simply change `useOneDriveCN` to true
     */
    useOneDriveCN: false,
  
    /**
     * Feature: Pagination when a folder has multiple(>${top}) files
     * - top: specify the page size limit of the result set, a big `top` value will slow down the fetching speed
     */
    pagination: {
      enable: true,
      top: 100 // default: 200, accepts a minimum value of 1 and a maximum value of 999 (inclusive)
    },
  
    /**
     * Feature Caching
     * Enable Cloudflare cache for path pattern listed below.
     * Cache rules:
     * - Entire File Cache  0 < file_size < entireFileCacheLimit
     * - Chunked Cache     entireFileCacheLimit  <= file_size < chunkedCacheLimit
     * - No Cache ( redirect to OneDrive Server )   others
     *
     * Difference between `Entire File Cache` and `Chunked Cache`
     *
     * `Entire File Cache` requires the entire file to be transferred to the Cloudflare server before
     *  the first byte sent to a client.
     *
     * `Chunked Cache` would stream the file content to the client while caching it.
     *  But there is no exact Content-Length in the response headers. ( Content-Length: chunked )
     *
     */
    cache: {
      enable: false,
      entireFileCacheLimit: 10000000, // 10MB
      chunkedCacheLimit: 100000000, // 100MB
      paths: ['/Images']
    },
  
    /**
     * Feature: Thumbnail
     * Show a thumbnail of image by ?thumbnail=small (small, medium, large)
     * More details: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_list_thumbnails?view=odsp-graph-online#size-options
     * Example: https://storage.spencerwoo.com/🥟%20Some%20test%20files/Previews/eb37c02438f.png?thumbnail=mediumSquare
     * You can embed this link (url encoded) directly inside Markdown or HTML.
     */
    thumbnail: true,
  
    /**
     * Small File Upload (<= 4MB)
     * POST https://<base_url>/<directory_path>/?upload=<filename>&key=<secret_key>
     */
    upload: {
      enable: false,
      key: 'your_secret_key_here'
    },
  
    /**
     * Feature: Proxy Download
     * Use Cloudflare as a relay to speed up download. (Especially in Mainland China)
     * Example: https://storage.spencerwoo.com/🥟%20Some%20test%20files/Previews/eb37c02438f.png?raw=true&proxied
     * You can also embed this link (url encoded) directly inside Markdown or HTML.
     */
    proxyDownload: true
  }
  
  export default config
  