This may be a very basic question but I can't quite wrap my head around it.
I have some JSON files on a Raspberry Pi that's connected to a network, and I'm wondering if I can serve those files to a website directly from the Pi?
I create the files via a cron job, so they are regularly updated. I suppose I could tweak the cron job to move the files to the site server once they're updated, but would it be possible to use the Pi as a file server directly instead?
I tried just using http://192.my.ip.address/my/folder/location but that doesn't work. Should I make that folder 'public' or is that too much of a security risk? Can I open a port on the Raspberry Pi so that my files can be read by my website? Should I follow some of the tutorials online and install Apache and turn my Pi into a whole web server? Or is that too much just too serve a handful of files (and not, say, a whole web page)?
If anyone can illuminate this I'd appreciate it!