diff options
author | Karissa McKelvey <karissa@users.noreply.github.com> | 2017-05-02 11:22:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-02 11:22:29 -0700 |
commit | f0807989057eb0b677bdddd69b812f8cd7601957 (patch) | |
tree | cfff4dcd28ea4a04b0b6ee5f88fd208b2875cb6a /docs | |
parent | 84a156877e6e401940be255dba78a1aa604e9ae5 (diff) | |
download | dat-docs-f0807989057eb0b677bdddd69b812f8cd7601957.tar.gz dat-docs-f0807989057eb0b677bdddd69b812f8cd7601957.zip |
add start to server (#48)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/contents.json | 1 | ||||
-rw-r--r-- | docs/cookbook/server.md | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/docs/contents.json b/docs/contents.json index 7bbc9fd..342be30 100644 --- a/docs/contents.json +++ b/docs/contents.json @@ -6,6 +6,7 @@ "FAQ": "faq.md" }, "Cookbook": { + "On a Server": "cookbook/server.md", "In the Browser": "cookbook/browser.md", "Do-it-yourself": "cookbook/diy-dat.md" }, diff --git a/docs/cookbook/server.md b/docs/cookbook/server.md new file mode 100644 index 0000000..056d8d8 --- /dev/null +++ b/docs/cookbook/server.md @@ -0,0 +1,16 @@ +# Dats on a Server + +After you create your dat and close your laptop, other people won't be able to access your data. You might want a server that is always running, that archives and mirrors your dats, so that your dats are accessible at all times of the day. + +## TLDR +To host a dat on your server: + +``` + npm install -g dat lil-pids add-to-systemd + mkdir ~/dats + echo "dat dat://ff34725120b2f3c5bd5028e4f61d14a45a22af48a7b12126d5d588becde88a93/ \ + ~/dats/datprotocol \ + --quiet" > ~/dats/services + sudo add-to-systemd dat-lil-pids $(which lil-pids) ~/dats/services ~/dats/pids + sudo systemctl start dat-lil-pids +``` |