gun options
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment