瀏覽代碼

ipfs.service: use dht routing instead of dhtclient routing

remotes/blesmrt/master
Mikaela Suomalainen 5 月之前
父節點
當前提交
5128e8646a
簽署人: Mikaela Suomalainen <mikaela+git@mikaela.info> GPG Key ID: 0C207F07B2F32B67
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      etc/systemd/system/ipfs.service

+ 4
- 2
etc/systemd/system/ipfs.service 查看文件

@@ -10,13 +10,15 @@ After=network.target
# providers triggers netscan detection, risking account termination"

[Service]
ExecStart=/home/mikaela/go/bin/ipfs daemon --routing=dhtclient --enable-gc --enable-namesys-pubsub
ExecStart=/home/mikaela/go/bin/ipfs daemon --routing=dht --enable-gc --enable-namesys-pubsub

# My attempts at explaining flags above + --mount for fuse
# --mount - fuse for /ipfs and /ipns, see
# https://github.com/ipfs/go-ipfs/blob/master/docs/fuse.md as it requires
# some specific config, I am not setting it as default here.
# --routing=dhtclient - not serving requests to the network saving bandwidth
# --routing=dht - server requests to the network possibly using more
# bandwidth but also making content more findable (as opposed to
# dhtclient, not serving requests to the network saving bandwidth)
# --enable-gc - automatic cleaning of unpinned files per rules in ipfs
# config, I think by default two hours or when the repo gets bigger than
# 10G

Loading…
取消
儲存