User Tools

Site Tools


sdbs_selfhosting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
sdbs_selfhosting [2020/07/06 14:57]
sdbs
sdbs_selfhosting [2020/12/19 15:01]
sdbs basic cleanup
Line 1: Line 1:
 ====== sdbs_selfhosting ====== ====== sdbs_selfhosting ======
  
-===== TMP =====+===== 101 =====
  
-  - sdbs backups [[syncthing]] +  - sdbs backups hosted through [[syncthing]] 
-  - [[ipfs]] +  - [[ipfs]] as single file self-hosting solution 
-  - [[torrent]] +  - [[torrent]] is used at klastr 
-  - [[https://pile.sdbs.cz/|pile]] +  - projects using self-hosting 
-  - [[https://sdbs.cz/klastr/|klastr]]+    - [[https://pile.sdbs.cz/|pile]] 
 +    - [[https://sdbs.cz/klastr/|klastr]] 
 +    - [[https://ipfs.io/ipns/QmX3hGuNKRRogN12S6Gjg7s3TWDzjHLh25P4da9nBrTxKh/|gunk]] 
 + 
 +===== CHAOSSTREAM ===== 
 +==== IPFS ==== 
 + 
 +The script for autopinning files from **inform** and **pile**: 
 + 
 +<code> 
 +set -ex 
 +cd 
 +pwd 
 +mkdir -p ipfs 
 +cd ipfs 
 + 
 +echo ' 
 +#!/bin/bash 
 +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 
 + 
 +cd "${DIR}" 
 + 
 +for url in "https://pile.sdbs.cz/api/ipfs_cids" "https://inform.sdbs.cz/ipfs_cids.php";do 
 +        echo "Loading ${url}..." 
 +        for cid in $(curl -s $url|sort -R);do 
 +                ipfs get "${cid}" && ipfs pin add --progress "${cid}" 
 +        done 
 +done 
 +' > update_pins.sh 
 +chmod +x update_pins.sh 
 + 
 +echo "30 */6 * * * $(whoami) ipfs name publish --key=gunk Qmb6WJzMereTNCMh1drjepq3wEn9r6HkBZKadc7CFwf98V" |sudo tee /etc/cron.d/ipfs 
 + 
 +set +x 
 +echo "Set-up complete. To update ipfs pins now, run ./update_pins.sh" 
 +</code> 
 + 
 +Copy and paste this into some file, then run it with ''bash''. It will set up periodic autopinning. 
 + 
 +------------------------------------------------------------
  
 ===== Structure proposal ===== ===== Structure proposal =====
sdbs_selfhosting.txt · Last modified: 2020/12/19 15:02 by sdbs