a20330fc by Jabis Sevón

gun options

1 parent 062dad5d
...@@ -77,11 +77,11 @@ server.on("upgrade", async function(request, socket, head) { ...@@ -77,11 +77,11 @@ server.on("upgrade", async function(request, socket, head) {
77 const g = gun.gun = Gun({ 77 const g = gun.gun = Gun({
78 peers: [], // should we use self as peer? 78 peers: [], // should we use self as peer?
79 localStorage: false, 79 localStorage: false,
80 file: false, // "tmp/" + pathname, 80 store: no,
81 radisk: false, 81 file: "tmp" + pathname, // make sure not to reuse same storage context
82 radisk: true, // important for nomem!
82 multicast: false, 83 multicast: false,
83 ws: { noServer: true, path: pathname, web: gun.server }, 84 ws: { noServer: true, path: pathname }
84 web: gun.server
85 }); 85 });
86 gun.server = gun.gun.back('opt.ws.web'); // this is the websocket server 86 gun.server = gun.gun.back('opt.ws.web'); // this is the websocket server
87 lru.set(pathname, gun); 87 lru.set(pathname, gun);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!