In order to correctly integrate the WAF operation, it is necessary to modify the nginx configuration.
Plesk allows you to make these modifications by writing them to a special folder: /usr/local/psa/admin/conf/templates/custom
In a fresh Plesk installation, the folder does not exist and the Pyxsoft installer creates it without any problems.
However, there are cases when this folder already exists and contains modifications. This happens because some Plesk extension has created it.
In this case, if we force Pyxsoft integration, the installation program will copy the "custom" folder to "pyxsoft.preinstall" and then proceed to finish the installation.
This way, when Pyxsoft is uninstalled, the original folder can be restored with the next command:
mv /usr/local/psa/admin/conf/templates/pyxsoft.preinstall /usr/local/psa/admin/conf/templates/custom && /usr/local/psa/admin/bin/httpdmng --reconfigure-all