Configuring nodejs export
Last modified by Aurelie Bertrand on 2025/12/19 08:51
- 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.
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
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
- Edit the system.xml file in the <digdash.appdata>/Enterprise Server/ddenterpriseapi/config folder.
- Add the line:
<Property key="NODEJS_EXPORT" value="true"></Property>
- 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
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.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
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