Yo/example/config.json

222 lines
5.4 KiB
JSON
Raw Normal View History

2023-11-25 00:17:06 +02:00
{
"manticore":
{
"server":
{
"host":"127.0.0.1",
"port":9308
},
"index":
{
2023-11-25 16:01:46 +02:00
"document":{
2024-04-05 05:04:25 +03:00
"name":"yo_gemini",
2023-11-25 16:01:46 +02:00
"settings":
{
2023-11-25 17:14:36 +02:00
"morphology":"stem_cz,stem_enru",
2023-11-25 16:01:46 +02:00
"index_exact_words":1,
"html_strip":1,
"min_word_len":3,
"min_prefix_len":3
}
}
2023-11-25 00:17:06 +02:00
}
},
2024-04-03 17:07:28 +03:00
"gui":
2023-11-25 00:17:06 +02:00
{
"pagination":
{
"limit":20
2023-11-25 14:38:02 +02:00
},
"search":
{
"index":
{
"request":
{
"url":{
"enabled":false,
2024-04-03 17:07:28 +03:00
"regex":"/^gemini:\/\/.*/ui"
2023-11-25 14:38:02 +02:00
}
}
},
"extended":
{
"enabled":false
2024-03-21 22:05:47 +02:00
},
"options":
{
"field_weights":
{
2024-03-21 23:49:18 +02:00
"url":100,
"title":200,
"description":300,
"keywords":400,
"body":500
}
},
"highlight":
{
"fields":
[
"url",
2024-04-03 17:07:28 +03:00
"h1",
"h2",
"h3",
2024-03-21 23:49:18 +02:00
"body"
],
"options":
{
"around":5,
"limit":140
2024-03-21 22:05:47 +02:00
}
2023-11-25 14:38:02 +02:00
}
},
2024-03-22 23:50:39 +02:00
"index":
2024-03-22 22:50:52 +02:00
{
"enabled":true
2024-04-02 18:24:37 +03:00
},
"captcha":
{
"length":5,
"phrase":"0123456789abcdef",
"background":
{
"r":46,
"g":52,
"b":54
}
2023-11-25 00:17:06 +02:00
}
},
"cli":
{
"document":
{
"crawl":
{
2023-12-02 16:04:22 +02:00
"debug":
{
"level":
{
"notice":true,
"warning":true,
"error":true
}
},
2024-03-24 18:26:59 +02:00
"network":
{
"check":
{
"enabled":false,
2024-03-24 18:26:59 +02:00
"timeout":5,
"socket":
{
2024-04-04 02:05:51 +03:00
"1.1.1.1":80
2024-03-24 18:26:59 +02:00
}
}
},
2024-04-03 17:07:28 +03:00
"connection":
{
2024-04-03 17:07:28 +03:00
"timeout":3,
2024-04-05 05:19:59 +03:00
"length":10485760
},
2023-11-25 00:17:06 +02:00
"queue":
{
"limit":1,
"delay":1
},
2024-04-03 17:07:28 +03:00
"url":
{
2024-04-03 17:07:28 +03:00
"external":true,
"regex":"/^gemini:\/\/.*/ui",
"skip":
{
2024-04-03 17:07:28 +03:00
"stripos":
[
2024-04-03 17:07:28 +03:00
"?"
]
}
},
2023-11-25 00:17:06 +02:00
"snap":
{
2024-03-23 00:47:08 +02:00
"enabled":true,
"timeout":2592000
2023-11-25 00:17:06 +02:00
}
}
}
},
"snap":
{
"storage":
{
2023-11-25 03:19:54 +02:00
"tmp":{
"directory":"storage/tmp/snap"
},
2023-11-25 00:17:06 +02:00
"local":{
2023-12-02 22:15:44 +02:00
"enabled":false,
2023-11-25 00:17:06 +02:00
"directory":"storage/snap",
"size":
{
2024-04-03 17:07:28 +03:00
"max":1048576
2023-11-25 00:17:06 +02:00
},
2024-04-03 17:07:28 +03:00
"meta":
2023-12-02 22:15:44 +02:00
{
"stripos":
[
2024-04-03 17:07:28 +03:00
"text/gemini",
"image/"
2023-12-02 22:15:44 +02:00
]
},
"url":
{
"stripos":
[
2024-04-03 17:07:28 +03:00
"gemini://"
2023-12-02 22:15:44 +02:00
]
}
2023-11-25 00:17:06 +02:00
},
2023-11-26 21:33:34 +02:00
"remote":
2023-11-25 00:17:06 +02:00
{
2023-11-25 03:19:54 +02:00
"ftp":
[
{
"enabled":false,
"connection":
{
"port":21,
"host":"",
"username":"",
"password":"",
"directory":"/snap/yo",
"timeout":30,
"passive":true,
"attempts":
{
"limit":0,
"delay":60
}
},
"size":
{
2024-04-03 17:07:28 +03:00
"max":1048576
2023-11-25 03:19:54 +02:00
},
2024-04-03 17:07:28 +03:00
"meta":
2023-12-02 22:15:44 +02:00
{
"stripos":
[
2024-04-03 17:07:28 +03:00
"text/gemini",
"image/"
2023-12-02 22:15:44 +02:00
]
},
"url":
{
"stripos":
[
2024-04-03 17:07:28 +03:00
"gemini://"
2023-12-02 22:15:44 +02:00
]
}
2023-11-25 03:19:54 +02:00
}
]
2023-11-25 00:17:06 +02:00
}
}
}
}