Can I use embedded Web server to provide support to download files


I see confd has one embedded Web server. I want to understand if it cab be used to provide download functionality. Like to provide way to download backup files or any type of file ?


It definitely can. You can place any static files to ConfD webserver’s docroot, or you can generate them through your cgi scripts, or you can even send them as a binary payload in a RESTCONF response (that’s probably not the best idea). Or you can proxy the webserver by nginx or the like and use that instead. See more in “The web server” chapter in the ConfD user guide.