Skip to content

Commit 397beb5

Browse files
authored
ensure network is private using LIBP2P_FORCE_PNET option (#621)
1 parent 6dd33c5 commit 397beb5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

infrastructure/ansible/tasks/install_ipfs_docker_tasks.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
ipfs config Pinning.Recursive true
4040
mode: "0755"
4141

42-
- name: debug private_ipfs
42+
- name: Debug private_ipfs
4343
ansible.builtin.debug:
4444
msg: "Got private_ipfs={{ private_ipfs }}"
4545

@@ -101,7 +101,8 @@
101101
name: "ipfs"
102102
hostname: "ipfs"
103103
image: "quay.io/labdao/ipfs:{{ ipfs_version }}-ds-s3-3box"
104-
# env:
104+
env:
105+
LIBP2P_FORCE_PNET: "{% if private_ipfs is defined and private_ipfs | bool %}1{% else %}0{% endif %}"
105106
# All this is now in template
106107
# AWS_REGION: "us-east-2"
107108
# CLUSTER_S3_BUCKET: "labdao-ipfs-bucket-{{ ansible_ec2_tags_instance_Env | lower }}"

0 commit comments

Comments
 (0)