Configuring the CMIS Gateway to Connect to a Laserfiche Cloud Repository.

June 8, 2023 | KB: 1014455
SDK 10.4

Summary

This article documents how to modify a self-hosted CMIS Gateway's config.json file in order to connect to a Laserfiche Cloud repository.

Resolution

Make note of your Laserfiche Cloud repository ID. The repository ID is usually in the following format:

r-xxxxxxxx

The repository ID can be found on the Plan page in Account Administration.

  1. Locate the config.json file in the CMIS Gateway installation directory and open the file with a text editor. By default, the file is located at C:\Program Files\Laserfiche\CMIS Gateway.
  2. Set the server and name key values according to your repository ID and data center location in the following formats:
    • United States data center: r-xxxxxxxx.laserfiche.com
    • Canadian data center: r-xxxxxxxx.laserfiche.ca
    • European data center: r-xxxxxxxx.eu.laserfiche.com
  3. Set the id value to the repository ID.
  4. Set the thinClientUrl value according to your repository ID and data center location in the following formats:
    • United States data center: https://app.laserfiche.com/laserfiche/browse.aspx?repo=r-xxxxxxxx
    • Canadian data center: https://app.laserfiche.ca/laserfiche/browse.aspx?repo=r-xxxxxxxx
    • European data center: https://app.eu.laserfiche.com/laserfiche/browse.aspx?repo=r-xxxxxxxx
  5. See the following sample config.json file:
  6. {
      "repositories": [
        {
          "server": "r-xxxxxxxx.laserfiche.com",
          "port": 443,
          "name": "r-xxxxxxxx.laserfiche.com",
          "id": "r-xxxxxxxx",
          "ssl": true,
          "description": "Sample Description",
          "authentication": [ "basic"],
          "rootFolderId": 1,
          "thinClientUrl": https://app.laserfiche.com/laserfiche/browse.aspx?repo=r-xxxxxxxx
        }
      ]
    }
    

    Replace all the example "r-xxxxxxxx" values with your Laserfiche Cloud repository ID.

  7. Save your changes to the config.json file.
  8. Recycle the CMIS application pool (CMISAppPool in IIS).