Skip to content

Commit

Permalink
allow api
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Jun 27, 2023
1 parent a45ef96 commit 5b7ec22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ipfs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
FROM ipfs/kubo:v0.20.0

ADD ./container-init.d/000-cleanup-deprecated-config.sh /container-init.d/000-cleanup-deprecated-config.sh
RUN chmod a+x /container-init.d/000-cleanup-deprecated-config.sh

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

ADD ./container-init.d/002-set-udp-only.sh /container-init.d/002-set-udp-only.sh
RUN chmod a+x /container-init.d/002-set-udp-only.sh
ADD ./container-init.d /container-init.d
RUN chmod a+x /container-init.d/*
5 changes: 5 additions & 0 deletions ipfs/container-init.d/004-set-allow-api.sh
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"

0 comments on commit 5b7ec22

Please sign in to comment.