User Tools

Site Tools


f1x:technicals

Technical notes

pecl install luasandbox
https://www.php.net/manual/en/luasandbox.examples-basic.php

Lua sandbox example
https://www.php.net/manual/en/luasandbox.examples-basic.php

Storage

  • Folders, Memos and Blobs are represented on disk as “Shard” and have address produced by hashing their content. This allows deduplication and (in the future) search for content by hash
  • Folders and Memos have mandatory Name and Parent field that is used by apps for lookups
  • “Public” area is separated from from private storage and contains either hashes or blobs
  • Cache servers store additional data for each

Misc

Installation

apt install libapache2-mod-php8.3 php-pear php-dev lua5.1 liblua5.1-dev
pecl install LuaSandbox
echo extension=luasandbox.so > /etc/php/8.3/apache2/conf.d/99-luasandbox.ini
echo extension=luasandbox.so > /etc/php/8.3/cli/conf.d/99-luasandbox.ini

Architecture overview

Site daemon announces “callbacks”

f1x/technicals.txt · Last modified: 2025/01/10 08:50 by arie

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki