-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from gildlab/develop
udp only in docker
- Loading branch information
Showing
6 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ipfs/kubo:v0.19.1 | ||
FROM ipfs/kubo:v0.20.0 | ||
|
||
ADD ./container-init.d/001-set-allow-origin.sh /container-init.d/001-set-allow-origin.sh | ||
RUN chmod a+x /container-init.d/001-set-allow-origin.sh /container-init.d/001-set-allow-origin.sh | ||
ADD ./container-init.d /container-init.d | ||
RUN chmod a+x /container-init.d/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
set -euxo pipefail | ||
|
||
# moved to Routing.AcceleratedDHTClient in Kubo 0.21 | ||
# ipfs config --bool Experimental.AcceleratedDHTClient null | ||
ipfs config profile apply default-networking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
set -euxo pipefail | ||
|
||
# https://github.com/ipfs/kubo/issues/3320#issuecomment-1321103079 | ||
ipfs config --bool Swarm.Transports.Network.TCP false | ||
# https://github.com/ipfs/kubo/issues/9998 | ||
ipfs config --json Swarm.Transports.Network.Websocket false | ||
# https://github.com/ipfs/kubo/blob/master/docs/config.md#addressesswarm | ||
ipfs config --json Addresses.Swarm '["/ip4/0.0.0.0/udp/4001/quic","/ip4/0.0.0.0/udp/4001/quic-v1","/ip4/0.0.0.0/udp/4001/quic-v1/webtransport","/ip6/::/udp/4001/quic","/ip6/::/udp/4001/quic-v1","/ip6/::/udp/4001/quic-v1/webtransport"]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
set -euxo pipefail | ||
|
||
# This is inside the docker container, nginx wraps it. | ||
ipfs config --json Addresses.API '"/ip4/0.0.0.0/tcp/5001"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters