Configuring nodejs export
- Install Chromium
- Activate the nodejs export server
- Set up the nodejs server
- Export via NodeJS multi-domain
The export of certain Flows (graphics), such as D3, Gantt or Open Street Map, requires the use of nodejs.
To run nodejs, follow the instructions below.
Install Chromium
The nodejs export requires the Chromium browser to be installed.
Installation on Ubuntu 22.04
For installation on Ubuntu 22.04, use the following commands:
echo "deb [signed-by=/etc/apt/trusted.gpg.d/phd-chromium.asc] https://freeshell.de/phd/chromium/$(lsb_release -sc) /" | sudo tee /etc/apt/sources.list.d/phd-chromium.list
sudo apt-get update
sudo snap remove chromium
sudo apt-get -y purge chromium-browser
sudo apt-get -y autoremove
sudo apt-get -y install chromium
Installation on Ubuntu 24.04
For installation on Ubuntu 24.04 with Tomcat 10, use the following commands:
sudo sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list'
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update
sudo apt-get install google-chrome-stable -y
sudo service tomcat10 start
Activate the nodejs export server
- Edit the system.xml file in the <digdash.appdata>/Enterprise Server/ddenterpriseapi/config folder.
- Add the line:
- Restart the tomcat server.
Set up the nodejs server
If the tomcat ip address and port are different from the default values (localhost:8080), edit the digdash.properties file .
Uncomment or add the following line:
Export via NodeJS multi-domain
For a multi-domain installation on the same machine, exports using NodeJS are not functional except for the default domain ("defautHost" in tomcat's server.xml).
For a "classic" installation with 3 domains such as "default, rct, dev", add the following lines to the "digdash.properties" file:
ddenterpriseapi_rct.DDAPIFORNODEJSURL=http://localhost-rct:8080
ddenterpriseapi_dev.DDAPIFORNODEJSURL=http://localhost-dev:8080
ddenterpriseapi.NODEJSURL=http://localhost:3000
ddenterpriseapi_rct.NODEJSURL=http://localhost-rct:3001
ddenterpriseapi_dev.NODEJSURL=http://localhost-dev:3002