From 39bbeadeb9bea4d45eb02cd144f27641e41249d2 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Wed, 6 Aug 2025 14:21:12 +0200 Subject: [PATCH] rename library 'models' => 'experiences' --- manyfold/README.md | 8 ++++---- manyfold/cli/manyfold.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/manyfold/README.md b/manyfold/README.md index f250aaa..06178de 100644 --- a/manyfold/README.md +++ b/manyfold/README.md @@ -23,8 +23,8 @@ $ docker load < $(nix-build nix/docker.nix) | `NO_DELETEBIGFILES` | `` | disable deleting big files which are older than 5 days and bigger than ($currentyear-2020) MB's | | `NO_PACKAGEALL` | `` | don't package all experiences every hour to /usr/src/app/public/experiences.zip | | `RCLONE_REMOTE` | `` | specify **single** rclone remote name (without semicolon) to mount (default: mount all rclone remotes)| -| `UPLOAD_PATH` | `/mnt/models`| specify default library where user-files are uploaded (regular dir or mounted rclone path) | -| `FEDERATE_DRIVE_PATH` | `/mnt/models`| serve path over HTTP (so other instances can add it as a remote). Specify `0` to disable | +| `UPLOAD_PATH` | `/mnt/experiences`| specify default library where user-files are uploaded (regular dir or mounted rclone path) | +| `FEDERATE_DRIVE_PATH` | `/mnt/experiences`| serve path over HTTP (so other instances can add it as a remote). Specify `0` to disable | | `FEDERATE_DRIVE_PORT` | `3215` | specify default library where user-files are uploaded (regular dir or mounted rclone path) | | `FEDERATE_DRIVE_USER` | `` | specify HTTP AUTH credentials (`user` e.g.) for restricted sharing | | `FEDERATE_DRIVE_PW` | `` | specify HTTP AUTH credentials (`pass` e.g.) for restricted sharing | @@ -87,7 +87,7 @@ The quickest way is: * TIP2: use env-var `RCLONE_REMOTE` to mount only one specific remote (in case of a [combined](https://rclone.org/combine/) or [union](https://rclone.org/union/) rclone remote e.g.). * TIP2: use **alphanumeric** names for rclone remotes (manyfold libraries choke on dot- or other special-characters) -By default environment-flag `FEDERATE_DRIVE_PATH` will share path `/mnt/models` as an open web directory. +By default environment-flag `FEDERATE_DRIVE_PATH` will share path `/mnt/experiences` as an open web directory. Make sure that the URL (and credentials if configure) of step 3 are setup properly, so it matches your reverse proxy/ or SSL configuration (via `FEDERATE_DRIVE_CERT` and `FEDERATE_DRIVE_KEY` flags) # Unixy event hooks @@ -107,7 +107,7 @@ You can put scripts in there, which are fired when needed. > Example: [manyfold/root/hook.d/daily/delete_big_files.sh] is triggered daily to cleanup files which exceed a certain age/size. -Currently inotify events (`inotify_MODIFY` e.g.) are triggered for local file-changes (`/mnt/models` e.g.). +Currently inotify events (`inotify_MODIFY` e.g.) are triggered for local file-changes (`/mnt/experiences` e.g.). In theory, federated drives can still be reacted upon, but by integrating with XRForge's ActivityPub (**Follow** feature e.g.) > Perhaps in the future this will also work for rclone remotes, by writing a `hourly`-script which scans them and fires `inotify_MODIFY` accordingly. diff --git a/manyfold/cli/manyfold.sh b/manyfold/cli/manyfold.sh index e9107b5..c213da1 100755 --- a/manyfold/cli/manyfold.sh +++ b/manyfold/cli/manyfold.sh @@ -1,7 +1,7 @@ #!/bin/sh oci=$(which podman || which docker) test -n "$APPNAME" || APPNAME=xrforge -test -n "$UPLOAD_PATH" || UPLOAD_PATH=/mnt/models +test -n "$UPLOAD_PATH" || UPLOAD_PATH=/mnt/experiences db=/config/manyfold.sqlite3 # utility funcs @@ -77,8 +77,8 @@ start_hook_daemon(){ # 86400 secs = 1 day 3600 = 1 hour $0 infinite 86400 hook daily & $0 infinite 3600 hook hourly & - # trigger hooks when files change in /mnt/models - inotifywait -r -m /mnt/models | awk '$2 ~ /(CREATE|MODIFY|MOVED_TO|DELETE)/ { system("'$0' hook inotify_"$2" "$1""$3) }' & + # trigger hooks when files change in /mnt/experiences + inotifywait -r -m $UPLOAD_PATH | awk '$2 ~ /(CREATE|MODIFY|MOVED_TO|DELETE)/ { system("'$0' hook inotify_"$2" "$1""$3) }' & }