picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.81k stars 616 forks source link

pico in IPFS? #654

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi all.

I would like to know if it would be possible to host picocms in ipfs.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1:

mayamcdougall commented 1 year ago

Sorry that this sat for so long without being answered. It's kind of an out-of-scope question for Pico, since it's really about web server setup and not Pico itself.

I've never done anything with IPFS, but some quick googling suggests that no, IPFS server software does not tend to utilize PHP in any way. IPFS is just a protocol though, so theoretically if you had a web server software that did serve PHP over an IPFS connection, Pico would probably work. There seems like there might also be some more "hacky" ways to script your IPFS software to pre-process and render your PHP files before sending the rendered output, but that's probably not the safest or most feasible solution.

ghost commented 1 year ago

Hi mayamcdougall.

Sorry that this sat for so long without being answered. It's kind of an out-of-scope question for Pico, since it's really about web server setup and not Pico itself. I've never done anything with IPFS, but some quick googling suggests that no, IPFS server software does not tend to utilize PHP in any way. IPFS is just a protocol though, so theoretically if you had a web server software that did serve PHP over an IPFS connection, Pico would probably work. There seems like there might also be some more "hacky" ways to script your IPFS software to pre-process and render your PHP files before sending the rendered output, but that's probably not the safest or most feasible solution.

thanks for the comment and reply.