• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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