diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-08-20 14:12:44 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2024-08-20 14:12:44 +0300 |
commit | 57d310ed10473ac1c06892f2dc22d6cd25b2291e (patch) | |
tree | a5e30e11fc531e01f1bfcc2b91f750ef2dab5764 /modules/ipfs.nix | |
parent | 2024-08-14 (diff) |
2024-08-20
Diffstat (limited to '')
-rw-r--r-- | modules/ipfs.nix | 14 |
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; } ) ]; |