ISPConfig 3 running Nginx and Nodejs?

Discussion in 'Tips/Tricks/Mods' started by GreggRed010, Mar 24, 2020.

  1. GreggRed010

    GreggRed010 New Member

    I'm looking for some information and insight into running Nodejs on my ISPConfig server running Nginx. I have multiple sites currently running from the server and I am in need of deploying a new Nuxt.js application.

    Firstly, will this be possible? If so what will I have to do in order to get it working correctly.

    Secondly will it be possible to run multiple apps and sites using node.js, simultaneously? I believe I'd have to do a reverse proxy but honestly I'm unsure.

    Any help and guidance on this matter will be greatly appreciated.
     
  2. nhybgtvfr

    nhybgtvfr Active Member

    I don't know about nginx, never really used it. but multiple websites running nodejs shouldn't be a problem. doing that with ispconfig on apache with no problems.

    I just install composer, nodejs and npm as root using apt, (everyone wanting nodejs/npm so far has always wanted composer as well) and make them available in jailkit. so ssh users can use them however they want.

    add to /etc/jailkit/jk_init.ini
    Code:
    [node]
    comment = NodeJS
    executables = /usr/bin/npm, /usr/bin/node, /usr/bin/nodejs, /usr/local/bin/elmi-to-json
    directories = /usr/share/npm, /usr/lib/nodejs, /usr/local/lib/node_modules
    
    
    [composer]
    comment = composer
    executables = /usr/bin/composer
    directories = /usr/share/doc/composer
    
    then just add composer and nodejs to the jailkit app list in the ispconfig server config area, and create the ssh user or update existing jailkit.

    I've never had to do anything with apache to allow any nodejs/npm stuff to work, but as I've already said, I don't know anything about nginx, so someone else will have to say if anything needs to be done there.
     
    GreggRed010 likes this.
  3. GreggRed010

    GreggRed010 New Member

    Great Stuff, thank you for the detailed reply and information. Finally getting around to implementing this on my server, so fingers crossed its as straight forward on nginx as it is on apache.
     

Share This Page