Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-1405

Handle local INI system-wide configuration

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.1
    • Component/s: Configuration

      Description

      To allow system wide local configuration, we can add a new configuration file located into the installation folder.
      When Drive is looking for configuration files, it will first peek the system one (INSTALLDIR\config.ini), then the user one (~\.nuxeo-drive\config.ini).
      Notes:

      • User options will override system ones.
      • Changes are effective for all OSes.

      We also need to tweak options in Settings to let the user know that is is managed by their sysadmin and they have no control over these.

      We will create another file, let's say admin.py, which defines the IS_ADMIN constant. This way we will be able to filter behaviors.

      The new configuration flow will be:

      • a registry key inside HKEY_CURRENT_USER\Software\Nuxeo\Drive,
      • the REST API endpoint /drive/configuration served by the server,
      • a INSTALDIR/config.ini file,
      • a $HOME/.nuxeo-drive/config.ini file,
      • the command line.
        Each of these ways overrides the previous one.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 30 minutes
                  5h 30m