• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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