about summary refs log tree commit diff
path: root/modules/ipfs.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-08-20 14:12:44 +0300
committerAzat Bahawi <azat@bahawi.net>2024-08-20 14:12:44 +0300
commit57d310ed10473ac1c06892f2dc22d6cd25b2291e (patch)
treea5e30e11fc531e01f1bfcc2b91f750ef2dab5764 /modules/ipfs.nix
parent2024-08-14 (diff)
2024-08-20
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