How to deploy ExportToPDF on server (Node.js app)


Hello guys!

Tell me please how to deploy DHTMLX Gantt Export on server and use external URL on client side to download PDF ?

On server:

  1. npm install
  2. set PUBLIC_PORT=3555& set EXPORT_HTTP=what_this?ip_address?:{3555}& node index.js

If I run it like this:
set PUBLIC_PORT=3500& set EXPORT_HTTP= node index.js
Export server will be available only locally.
How can I make it accessible from the outside (From another computer, from another network)?

Also, I found some similar questions:
Dhtmlx gantt chart + setup server for local export module - Gantt - DHTMLX
Install the Export module on your server directly - Gantt - DHTMLX

Install the Export module on your server directly

Hello Andrii,
That part is beyond our support.
However, I can share that you can use the Nginx server and redirect incoming requests from the internet to the node.js application.

I have the following Nginx configuration:

server {
   listen      80;

   location /gantt {
        proxy_redirect off;
        proxy_buffering off;
        proxy_set_header        Host  ;
        proxy_set_header        X-Real-IP       $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;


And here is an explanation.

The listen and server_name parameters tell the Nginx server to listen to all requests that come to the server over port 80 (HTTP port) and match with the DNS name or the IP address:
If the request is, the Nginx server redirects the request to

If you want us to configure your server to make it available for the external network, I can contact you with the Sales team: