.. _embed: Configure ``findface-facerouter`` to Use Plugins ====================================================== .. tip:: To get started, try the default plugin ``/opt/findface-security/fr_plugin/ffsec_fr_plugin.py``. Or go ahead and :ref:`create your own `. .. important:: Be sure to :ref:`change ` the Tarantool database structure prior, according to the processing directive in the plugin. .. important:: The ``findface-facerouter`` component must be :ref:`installed and configured `. To configure ``findface-facerouter`` to use plugins, do the following: #. Put a plugin into a directory of your choice. All plugins in use have to be in the same directory. #. Open the ``findface-facerouter`` configuration file. Uncomment the ``plugin_dir`` parameter and specify the plugin directory. .. warning:: The ``findface-facerouter.py`` content must be correct Python code. .. code:: sudo vi /etc/findface-facerouter.py plugin_dir = '/etc/findface/plugins/' #. Restart ``findface-facerouter``. .. code:: sudo systemctl restart findface-facerouter.service