Compare commits

...

2 Commits

Author SHA1 Message Date
decentral1se d77cdb5243
Trying to describe the chaos further
continuous-integration/drone/push Build is passing Details
2021-06-16 13:32:08 +02:00
decentral1se a436b6ff92
Update script to actually work 2021-06-16 12:59:33 +02:00
2 changed files with 29 additions and 19 deletions

View File

@ -4,31 +4,39 @@
A service to facilitate collective digital publishing practices. A service to facilitate collective digital publishing practices.
## Mapping out the pubspace ## How does publishing happen?
- **Services**: ### cloud.lumbung.space
- [cloud.lumbung.space](https://cloud.lumbung.space/) ([Nextcloud](https://nextcloud.com/)) > **WARNING**: Only file sharing is implemented
- [tv.lumbung.space](https://tv.lumbung.space/) ([Peertube](https://joinpeertube.org/))
- [social.lumbung.space](https://social.lumbung.space/) ([Hometown](https://github.com/hometown-fork/hometown))
- [lumbung.space](https://lumbung.space/) ([Hugo](https://gohugo.io/))
- **Types of shares**: - 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
- **cloud.lumbung.space**: links to file paths ### social.lumbung.space
- **tv.lumbung.space**: links to videos
- **social.lumbung.space**: links to posts
- **Publishing flows**: - When a toot uses the hashtag `#pubspace` (a comment on a thread will also "unroll" the entire thread)
- **cloud.lumbung.space**: Using [Nextcloud flows](https://nextcloud.com/blog/nextcloud-flow-makes-it-easy-to-automate-actions-and-workflows/), we can trigger an outgoing HTTP request towards `pubspace` - Only toots with `visibility: public` will be published. Local only posts and otherwise private posts are respected.
- **tv.lumbung.space**: Using [a federation client](https://mastodonpy.readthedocs.io/) we can watch for specific hashtags to trigger publishing - This toot link will be shown on the `publish.lumbung.space` prototype page
- **social.lumbung.space**: Using [a federation client](https://mastodonpy.readthedocs.io/), we can watch for specific hashtags to trigger publishing
### 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
- [cloud.lumbung.space](https://cloud.lumbung.space/) ([Nextcloud](https://nextcloud.com/))
- [tv.lumbung.space](https://tv.lumbung.space/) ([Peertube](https://joinpeertube.org/))
- [social.lumbung.space](https://social.lumbung.space/) ([Hometown](https://github.com/hometown-fork/hometown))
## Nextcloud flow script ## Nextcloud flow script
```bash See the [pubspace.sh](./pubspace.sh) script. This is manually copied over into
echo "TODO" `/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](https://github.com/owncloud/pyocclient)
to generate a share for that file. The Nextcloud crontab runs the script.
## Deployment ## Deployment

View File

@ -1,7 +1,9 @@
#!/bin/sh #!/bin/bash
FILE="$1"
/usr/bin/curl \ /usr/bin/curl \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-X GET \ -X GET \
-d '{"username":"xyz","password":"xyz"}' \ -d "{\"file\":\"${FILE}\"}" \
https://publish.lumbung.space https://publish.lumbung.space