updated ipfs state

This commit is contained in:
Paul 2021-01-24 19:00:42 +01:00
parent 0b97450366
commit 4560f9d1fe
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ ipfs-set-storagemax:
ipfs-set-headers-1:
cmd.run:
- name: ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
- name: /usr/local/sbin/ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]'
- runas: ipfs
- cwd: /var/lib/ipfs
- watch-in:
@ -18,7 +18,7 @@ ipfs-set-headers-1:
ipfs-set-headers-2:
cmd.run:
#- name: ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://localhost:8888", "http://127.0.0.1:5001", "https://webui.ipfs.io"]'
- name: ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
- name: /usr/local/sbin/ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
- runas: ipfs
- cwd: /var/lib/ipfs
- watch-in:

View File

@ -3,7 +3,7 @@ ipfs:
enabled: true
install_dir: /usr/local/apps
release_dir: /usr/local/apps/releases
mirror: https://dl.google.com/go/
version: 1.15.5
mirror: "https://github.com/ipfs/go-ipfs/releases/download"
version: 0.7.0
os: linux
arch: amd64

View File

@ -2,7 +2,7 @@
ipfs-service-file:
file.managed:
- name: /etc/systemd/system/ipfs.service
- source: salt://ipfs/ipfs.service
- source: salt://ipfs/ipfs.service.j2
- watch-in:
- service: ipfs-service