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=http://0.0.0.0:3500& 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

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;
   server_name 192.168.0.102;

   location /gantt {
        proxy_pass  http://0.0.0.0:8192;
        proxy_redirect off;
        proxy_buffering off;
        proxy_set_header        Host            export.dhtmlx.com;
        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: 192.168.0.102.
If the request is 192.168.0.102/gantt, the Nginx server redirects the request to 192.168.0.102:8192.

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