[NEXTCLOUD] Add new IPFS copied files to my Swarm0 Nextcloud Station #4

Open
opened 2020-05-12 15:48:32 +02:00 by qo-op · 1 comment
Owner

Thanks to https://github.com/justicenode/files_external_ipfs.git
We could use 'ipfs files' command to control IPFS shared disk ;)

It could be cool to automaticaly detect new ipfs video/audio and add file to NC.


# Add ipfs storage to your Nextcloud
cd /var/www/nextcloud/apps
sudo git clone https://github.com/justicenode/files_external_ipfs.git 
sudo chown -R www-data:www-data files_external_ipfs

##########################################################
# NC Admin interface
# 1 - Activate this new "Appp"
# 2 - Add "Astroport" shared IPFS disk called "/nextcloud" in "Options/Admin/ExternalStorage" ( http://127.0.0.1:5001/api/v0 )

basic principle

ipfs add /tmp/avatar.png added QmaX48Kodghm3So8VnAJ99jqqo4AZ2Lc4ca2eeE6SnynMU avatar.png
 14.60 KiB / 14.60 KiB [==========================================================] 100.00%
ipfs files cp /ipfs/QmaX48Kodghm3So8VnAJ99jqqo4AZ2Lc4ca2eeE6SnynMU /nextcloud/avatar.png

Parser would parse sbotc #zenbot messages then

ipfs files mkdir /nextcloud/videos
ipfs files cp /ipfs/Qme6cgoCdyC3vQqDKTHaZGzaMDAXAsobTk9AapfzeFyW4v/LlgEfIQmnT8.mp4 '/nextcloud/videos/Everything counts Karaoke - Depeche Mode.mp4'
Thanks to https://github.com/justicenode/files_external_ipfs.git We could use 'ipfs files' command to control IPFS shared disk ;) It could be cool to automaticaly detect new ipfs video/audio and add file to NC. --- ``` # Add ipfs storage to your Nextcloud cd /var/www/nextcloud/apps sudo git clone https://github.com/justicenode/files_external_ipfs.git sudo chown -R www-data:www-data files_external_ipfs ########################################################## # NC Admin interface # 1 - Activate this new "Appp" # 2 - Add "Astroport" shared IPFS disk called "/nextcloud" in "Options/Admin/ExternalStorage" ( http://127.0.0.1:5001/api/v0 ) ``` basic principle ``` ipfs add /tmp/avatar.png added QmaX48Kodghm3So8VnAJ99jqqo4AZ2Lc4ca2eeE6SnynMU avatar.png 14.60 KiB / 14.60 KiB [==========================================================] 100.00% ipfs files cp /ipfs/QmaX48Kodghm3So8VnAJ99jqqo4AZ2Lc4ca2eeE6SnynMU /nextcloud/avatar.png ``` Parser would parse sbotc #zenbot messages then ``` ipfs files mkdir /nextcloud/videos ipfs files cp /ipfs/Qme6cgoCdyC3vQqDKTHaZGzaMDAXAsobTk9AapfzeFyW4v/LlgEfIQmnT8.mp4 '/nextcloud/videos/Everything counts Karaoke - Depeche Mode.mp4' ```
Author
Owner

We talk about Astroport Nexcloud integration here:
https://chat.axiom-team.fr/channel/nextcould

We talk about Astroport Nexcloud integration here: https://chat.axiom-team.fr/channel/nextcould
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: axiom-team/astroport#4
No description provided.