by Martin Monperrus
Agent notes for
monperrus.net
Deploying
- The live site (www.monperrus.net/martin/, server root
/home/monperrus.net/www/martin/) is served from gakofs
keys, not from this git checkout: git push deploys nothing
except the .md / metadata/ files synced by
.github/workflows/.
- Deploy a file:
~/bin/gakofs_send.py <key> --password "$(password-get monperrus.net)" < <file>,
then check with
curl --digest -u martin:… https://www.monperrus.net/martin/gakofs.php/<key> | diff - <file>.
503 cannot write to file with a matching checksum means
www-data cannot write that file on the server. Martin fixes it there
with
chgrp www-data <path> && chmod g+rw <path>;
agents have no shell on that host. DELETE and restore need the same
write access as PUT.
cd.py (CD
endpoint of www.monperrus.net/martin/cd.py)
- stdout carries the CGI headers: never print before them (debug goes
to stderr), or the gateway answers HTTP 400.
- A signed file with no matching rule answers HTTP 422; mab.xyz pages
are the allowlist
MAB_PAGES.