Installing Integrations
Integrations can be installed by moving the integration into the integrations
directory on your Polarity Server. The integrations directory defaults to /app/polarity-server/integrations
. There should be a directory for each integration.
As an example, the above directory structure has four installed integrations (generic-rest
, virustotal
, google-maps
, and crits
).
Once you have copied the integration to your integrations folder you will need to install the node modules that the integration depends on.
Navigate into the integration directory and run the command npm install
to install all the dependencies.
You will notice that after the npm install
command there will be a node_modules
directory inside your integration directory. You also need to ensure that all files in your integration are owned by the polarityd
user. You can do this with the following command:
Finally, you need to restart Polarity Server for the integration to be loaded the first time.
Last updated