Our state of the art Gantt chart


Post by prem kumar »

Hi,

I’m able to download the pdf via http://localhost:8080 succesfully , but I encounter an error when using a custom URL(attached screenshot). Is it possible to configure custom URLs to download the pdf? If so, could you please provide guidance on how to implement this?. We don't have access to external URLs on our servers. I added my custom url as follows.

 createServer(options) {
        const
            me  = this,
            app = me.app = express();

    options = Object.assign({
        timeout : 5 * 60 * 1000,// 5 minutes
         baseUrl: 'http://bavndevut.ramcouat.com:4652/dsktpuigfed/gapi', //custom URL
          }, options);
          //---existing logic--
          
        // changed in  setFile  to access the url 
          setFile(host, request, file) {
    const
        me      = this,
        fileKey = nanoid(),
        url     =   ${me.config.baseUrl}/${fileKey} // Use baseUrl from config

Thank you!

Attachments
pdferror3.png
pdferror3.png (59.97 KiB) Viewed 44 times
pdferror2.png
pdferror2.png (49.79 KiB) Viewed 44 times

Post by Maxim Gorkovsky »

Is it possible to configure custom URLs to download the pdf? If so, could you please provide guidance on how to implement this?

I am still not sure what are you asking about. The best I can make of it is: you want to configure our pdf export server such as it would respond not only on localhost:8080 but also on http://mycustomurl.com/.../gapi? Is that correct?


Post by prem kumar »

Yes, exactly! I’m looking to configure our PDF export server to be accessible not just on localhost:8080, but also via http://mycustomurl.com/.../gapi. Could you help me with the steps to set this up?


Post by Maxim Gorkovsky »

Unfortunately, this is outside of the scope of our forum. You need a domain name, which can be resolved to your machine, and you need a web app (or server) running there and listening to requests.

Please use web search for more information. StackOverflow should have an answer.


Post Reply