This repository has been archived on 2021-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
decentral1se 6256260057
All checks were successful
continuous-integration/drone/push Build is passing
Ignore test files
2021-06-16 17:02:46 +02:00
.dockerignore Ignore more stuff 2021-06-16 17:02:29 +02:00
.drone.yml Add drone config 2021-06-16 11:23:05 +02:00
.env.sample Support shares from NC side 2021-06-16 15:26:04 +02:00
.gitignore Ignore test files 2021-06-16 17:02:46 +02:00
compose.yml Pass env vars, push does build now 2021-06-16 15:54:32 +02:00
Dockerfile Init project files 2021-06-16 10:01:13 +02:00
entrypoint.sh.tmpl Support shares from NC side 2021-06-16 15:26:04 +02:00
LICENSE Init project files 2021-06-16 10:01:13 +02:00
makefile Pass env vars, push does build now 2021-06-16 15:54:32 +02:00
poetry.lock Use patched pyocclient 2021-06-16 15:03:05 +02:00
pubspace.py Attempt to log more and find correct paths 2021-06-16 17:02:34 +02:00
pubspace.sh More info from the script 2021-06-16 17:02:23 +02:00
pyproject.toml Use patched pyocclient 2021-06-16 15:03:05 +02:00
README.md Support shares from NC side 2021-06-16 15:26:04 +02:00

pubspace

Build Status

A service to facilitate collective digital publishing practices.

How does publishing happen?

cloud.lumbung.space

Warning

: Only file sharing is implemented

  • When a file is tagged with the publish tag, a share link will be generated
  • This share link will be shown on the publish.lumbung.space prototype page

social.lumbung.space

  • When a toot uses the hashtag #pubspace (a comment on a thread will also "unroll" the entire thread)
  • Only toots with visibility: public will be published. Local only posts and otherwise private posts are respected.
  • This toot link will be shown on the publish.lumbung.space prototype page

tv.lumbung.space

  • When someone comments on a published video using the #pubspace hashtag
  • This toot link will be shown on the publish.lumbung.space prototype page

Supported services

Nextcloud flow script

See the pubspace.sh script. This is manually copied over into /var/www/html/pubspace/pubspace.sh for now. There is a workflow scripts rule configured that when a file is tagged, the script is run. The script sends the filename to this service and then we use the pyocclient to generate a share for that file. The Nextcloud crontab runs the script.

Deployment

Work In Progress

$ printf $YOURMASTODONACCESSTOKEN | docker secret create  publish_lumbung_space_access_token_v1 -
$ printf $YOURNEXTCLOUDAPPPASSWORD | docker secret create  publish_lumbung_space_app_password_v1 -
$ cp .env.sample .env  # and update the values to match the environment
$ set -a && source .env && set +a
$ docker stack deploy -c compose.yml publish_lumbung_space