forked from ipfs-search/ipfs-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_config.yml
46 lines (46 loc) · 1.3 KB
/
example_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
tika:
url: http://localhost:8081 # ipfs-tika endpoint URL, also TIKA_URL in env
timeout: 5m # ipfs-tika request timeout
max_size: 50MB # Don't attempt to get metadata for files over this size
ipfs:
api_url: localhost:5001 # IPFS API endpoint, also IPFS_API_URL in env
timeout: 6m # Timeout for IPFS gateway HTTPS requests
elasticsearch:
url: http://localhost:9200 # Also ELASTICSEARCH_URL in env
amqp:
url: amqp://guest:guest@localhost:5672/ # Also AMQP_URL in env
crawler:
retry_wait: 2s # wait time between retries of failed requests
hash_wait: 100ms # Time between launching workers
file_wait: 100ms
partial_size: 256KB # Size for partial items - this is the default chunker block size
hash_workers: 140
file_workers: 120
# Future features; automatic index upgrading and indexes per mime type
index:
types:
- audio:
- audio/*
- application/ogg
- video:
- video/*
- application/mp4
- document:
- text/html
- text/plain
- application/pdf
- application/postscript
- application/rtf
- application/epub+zip
- application/x-mobipocket-ebook
- "*excel"
- "*word"
- "*powerpoint"
- "*document*"
- image:
- image/*
analyzed_fields:
- title
- description
- artist
- author