This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
2023-07-02 00:09:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2023-09-23 17:27:36 +00:00
|
|
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["https://'$LOCAL_DOMAIN'"]'
|
2023-07-02 00:09:57 +00:00
|
|
|
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST"]'
|
|
|
|
|
|
|
|
ipfs config --json Gateway.PublicGateways '{
|
|
|
|
"'$IPFS_DOMAIN'": {
|
2023-07-02 16:07:23 +00:00
|
|
|
"UseSubdomains": true,
|
2023-07-02 00:09:57 +00:00
|
|
|
"Paths": ["/ipfs", "/ipns"]
|
|
|
|
}
|
|
|
|
}'
|
|
|
|
|
|
|
|
ipfs config --json DNS.Resolvers '{
|
|
|
|
".": "https://anycast.censurfridns.dk/dns-query"
|
|
|
|
}'
|
|
|
|
|
|
|
|
ipfs config --json Datastore.StorageMax '"100GB"'
|
|
|
|
ipfs config --json Datastore.GCPeriod '"10m"'
|