Configuring nodejs export

Last modified by Aurelie Bertrand on 2025/12/19 08:51


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.

For installation on Ubuntu 22.04, use the following commands:

sudo wget "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x869689FE09306074" -O /etc/apt/trusted.gpg.d/phd-chromium.asc
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

Activate the nodejs export server

  1. Edit the system.xml file in the <digdash.appdata>/Enterprise Server/ddenterpriseapi/config folder.
  2. Add the line:
<Property key="NODEJS_EXPORT" value="true"></Property>
  1. 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:

ddenterpriseapi.SERVERURL=http://localhost:8080

💡To uncomment a parameter in the digdash.properties file, delete the # character at the beginning of the 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:

ℹ For the "NODEJSURL" parameter, the ports must be distinct per domain on the same machine (3000 then 3001 and 3002 in the example below). They do not have to be continuous (but they do have to be free, of course).

ddenterpriseapi.DDAPIFORNODEJSURL=http://localhost:8080
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