From a88179182766dd667084402d2c0594e398877f32 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 25 Nov 2023 00:17:06 +0200 Subject: [PATCH] fix gitignore --- .gitignore | 4 +- example/config.json | 107 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+), 2 deletions(-) create mode 100644 example/config.json diff --git a/.gitignore b/.gitignore index dacc4f3..bb81149 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /storage/ /vendor/ -composer.lock -config.json \ No newline at end of file +/config.json +/composer.lock \ No newline at end of file diff --git a/example/config.json b/example/config.json new file mode 100644 index 0000000..2f52990 --- /dev/null +++ b/example/config.json @@ -0,0 +1,107 @@ +{ + "manticore": + { + "server": + { + "host":"127.0.0.1", + "port":9308 + }, + "index": + { + "document":"yo_document" + } + }, + "webui": + { + "url": + { + "base":"http://127.0.0.1:8888" + }, + "pagination": + { + "limit":20 + } + }, + "cli": + { + "document": + { + "crawl": + { + "queue": + { + "limit":1, + "delay":1 + }, + "selector": + { + "a:not([rel=nofollow])": + { + "attribute":"href", + "external":false, + "regex":"/.*/ui" + }, + "image": + { + "attribute":"src", + "external":true, + "regex":"/.*/ui" + }, + "audio": + { + "attribute":"src", + "external":false, + "regex":"/.*/ui" + }, + "video": + { + "attribute":"src", + "external":false, + "regex":"/.*/ui" + }, + "script": + { + "attribute":"href", + "external":false, + "regex":"/.*/ui" + } + }, + "snap": + { + "enabled":true + } + } + } + }, + "snap": + { + "storage": + { + "local":{ + "enabled":true, + "directory":"storage/snap", + "size": + { + "max":100024 + }, + "mime": + [ + "application/xhtml+xml", + "application/javascript", + "text/html", + "text/plain", + "text/css", + "image/webp", + "image/png", + "image/gif", + "image/ico" + ] + }, + "mirror": + { + "enabled":false, + "ftp":[] + } + } + } +} \ No newline at end of file