Welcome! Log In Create A New Profile

Advanced

Can I serve CLI Applications using Nginx

June 22, 2022 10:36AM
I want to create a CLI app (in this case named CLI_APP), that will output
json and can be accessed via web.

In Linux terms, it will look like:

Request | Web_Server | CLI_APP | ADD_UI | Web_Server > Response

Now, I will run the app like `CLI_APP --output json`. Here, I am saying
that the CLI_APP will output json (for REST API).

Here, `ADD_UI --output web` will add HTML, CSS, JS etc. to the JSON output.

Can Nginx help me send the requests to CLI_APP via STDIN and serve the
final output of ADD_UI --output web?

Thanks and Best Regards,
Ahmad Ismail
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Can I serve CLI Applications using Nginx

ismail783 June 22, 2022 10:36AM

Re: Can I serve CLI Applications using Nginx

Lyndon Nerenberg (VE7TFX/VE6BBM) June 22, 2022 01:26PM

Re: Can I serve CLI Applications using Nginx

ismail783 June 23, 2022 01:20AM

Re: Can I serve CLI Applications using Nginx

ismail783 June 23, 2022 09:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready