about summary refs log tree commit diff
path: root/modules/ipfs.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/ipfs.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/ipfs.nix b/modules/ipfs.nix
index 1dad6a6..1e1d23f 100644
--- a/modules/ipfs.nix
+++ b/modules/ipfs.nix
@@ -115,7 +115,21 @@ in
 
                 NoAnnounce = filterAddresses;
               };
+
               Swarm.AddrFilters = filterAddresses;
+
+              API.HTTPHeaders = {
+                Access-Control-Allow-Origin = [
+                  "http://127.0.0.1:5001"
+                  "http://webui.ipfs.io.ipns.localhost:6001"
+                ];
+                Access-Control-Allow-Methods = [
+                  "PUT"
+                  "POST"
+                ];
+              };
+
+              Experimental.FilestoreEnabled = true;
             }
           )
         ];

Consider giving Nix/NixOS a try! <3