HelloZeroNet / ZeroTalk

ZeroTalk
GNU General Public License v2.0
59 stars 48 forks source link

data.json with size > 10MB #92

Open madyel opened 4 years ago

madyel commented 4 years ago
ZeroNet version: 0.7.1 (rev4253)
Operating system: Linux
Web browser: Firefox
Tor status: available
Opened port: yes 

I create a new site from ZeroTalk, all is well, it loads nearly instantly.

I'm trying to publish content.json and index.html send over fine, but publishing the data/user/xxx/data.json with size>10MB file does not work. The following appears in the log:

[FAILED] x.x.x.x:16990: {'exception': 'Timeout'}

My file content.json user:

{
 "address": "xxxx",
 "files": {},
 "ignore": ".*",
 "inner_path": "data/users/content.json",
 "modified": 1573234081,
 "signs": {"xxxx": "xyz"},
 "user_contents": {
  "cert_signers": {
   "zeroid.bit": ["xxxxxxxxxxx"]
  },
  "content_inner_path": "data/users/content.json",
  "optional": null,
  "permission_rules": {
   ".*": {
    "files_allowed": "data.json",
    "max_size": 104857600
   },
   "bitmsg/.*@zeroid.bit": {"max_size": 100000}
  },
  "permissions": {
   "bad@zeroid.bit": false,
   "nofish@zeroid.bit": {"max_size": 100000}
  },
  "relative_path": "content.json"
 }
}

PS If the file data.json is < 10MB works well what could be causing that? Any ideas? Thanks!