/ipfs

Primary LanguageShell

Run docker compose up, let the daemon start, then kill the session with ctrl+c

To use the API, edit the config file in ipfs_data:

"HTTPHeaders": {
      "Access-Control-Allow-Origin": [
        "http://localhost:3000",
        "http://127.0.0.1:5001",
        "https://webui.ipfs.io"
      ],
      "Access-Control-Allow-Methods": [
        "PUT",
        "POST"
      ]
    }

To prevent hosting other files, set Gateway.NoFetch to true.

Port forward 4001 on your router for best results