Key features

PicoLisp web framework

Small memory footprint

multi directory hierarchy

Limit maximum file size

Support for texts only

Blake2b hash for uniqueness (monocypher library via mmap syscall)

Installation

get ready PicoLisp installation (64bit mode)

install monocypher

$ ldconfig -p | grep monocypher libmonocypher.so.3 (libc6,x86-64) => /usr/local/lib/libmonocypher.so.3 libmonocypher.so (libc6,x86-64) => /usr/local/lib/libmonocypher.so

select directory root

$ pil dirtree.l /home/user/skudra-root

modify *ServRoot, *DirRoot and *KBLimit as file size limit in pastebin.l

port number of (server) call as last line of pastebin.l should be equal to *ServRoot’s port

modify index.txt if you want, copy it to *DirRoot

you could choose run nginx before pil

start PicoLisp manually or setup runit or systemd

$ nohup pil pastebin.l & [1] 618124

to kill daemon

$ killall picolisp

setup cron job to delete older pastes

find /home/user/skudra-root -type f -mtime +30 -exec rm -f {} \;

Default index message