File tree Expand file tree Collapse file tree 2 files changed +10
-18
lines changed
Expand file tree Collapse file tree 2 files changed +10
-18
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ ProtectHome=true
5050RemoveIPC =true
5151RestrictSUIDSGID =true
5252CapabilityBoundingSet =CAP_NET_BIND_SERVICE
53+ # set memory limit to avoid taking all the CRN ressource and getting OOM
54+ # https://github.com/ipfs/kubo/blob/master/docs/config.md#swarmresourcemgrmaxmemory
55+ Environment =GOMEMLIMIT =1900m
56+ MemoryHigh =2G
57+ MemoryMax =4G
5358
5459# enable for 1-1024 port listening
5560#AmbientCapabilities=CAP_NET_BIND_SERVICE
@@ -76,7 +81,11 @@ Type=notify
7681User =ipfs
7782Group =ipfs
7883Environment =IPFS_PATH ="/var/lib/ipfs"
79- ExecStart =/opt/kubo/ipfs daemon --init --migrate --init-profile =server --config-file /etc/ipfs/kubo.json
84+ ExecStartPre =/opt/kubo/ipfs init
85+ ExecStartPre =/opt/kubo/ipfs config --json Gateway.PublicGateways '{"localhost": {"UseSubdomains": false, "Paths": ["/ipfs", "/ipns"]}}'
86+ ExecStartPre =/opt/kubo/ipfs config --json Reprovider.Strategy '"roots"'
87+ ExecStartPre =/opt/kubo/ipfs config --json Swarm.ResourceMgr '{"MaxMemory" : "1GB"}'
88+ ExecStart =/opt/kubo/ipfs daemon --migrate =true --init-profile =server
8089Restart =on-failure
8190KillSignal =SIGINT
8291
You can’t perform that action at this time.
0 commit comments