• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Setting NodeJS settings through script

marcel_gc

New Pleskian
Hello,

First time poster here, so please forgive me if I'm forgetting something.

I am trying to set up subscriptions with Apache and the NodeJS extension through the Plesk API with custom Passenger settings (mainly the PassengerStartupFile, PassengerAppRoot and NODE_PATH env variable). The API only seems to be able to enable the plugin, but not change it's settings. We already use a batch script to write a vhost file for the subscription, so I've added the section for the Passenger configuration there. I also had to change the order Plesk writes the httpd file (through templates), so our vhost file is included after the default Plesk Passenger plugin section.

This seems to work, but the fact that I had to change templates in Plesk tells me this is probably not the way to go. Also the settings I write in the vhost (or directly in the httpd for that matter), are not reflected in the Plesk UI for that subscription.

We currently run:
‪CentOS 6.10 (Final)‬
Plesk Onyx Version 17.8.11
Node.js Version: 1.3.4-107

Could you guys please tell me if there is a better way of doing this? Thanks!
 
Back
Top