-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathconfig.yml.example
64 lines (50 loc) · 1.71 KB
/
config.yml.example
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
# Top-level temp directory will be created on start and removed
# on exit. Each crawler will have its own subdirectory with
# PID appended
TMP_DIR: /tmp/smarter_encryption
CRAWLER_TMP_PREFIX: crawler_
# User agent. Will use defaults if not specified
#UA:
VERBOSE: 1
# Paths to system binaries. If in path already, just the program
# name should suffice.
COMPARE: /usr/local/bin/compare
PKILL: /usr/bin/pkill
# Database connection options. If not specified will connect as
# the current user.
#DB:
#HOST:
#PORT:
#USER:
#PASS:
# Number of concurrent crawlers per cpu.
CRAWLERS_PER_CPU: 3
# or exact number
# MAX_CONCURRENT_CRAWLERS: 10
# Path to phantomjs. Should be v2.1.1
PHANTOMJS: phantomjs
# Path to modified netsniff.js
NETSNIFF_SS: netsniff_screenshot.js
# Timeout before killing phantomjs in seconds
HEADLESS_ALARM: 30
# Whether to continue running and polling the queue or exit when finished.
# If specified and non-zero, it is the number of seconds to wait in
# between polls.
POLL: 60
# Number of sites a crawler should process before exiting
SITES_PER_CRAWLER: 10
# Desired number of URLs to check for each site
URLS_PER_SITE: 10
# Max percentage of URLS_PER_SITE included from the current home page
HOMEPAGE_LINK_PCT: 0.5
# Number of times to re-request HTTPs URL on failure
HTTPS_RETRIES: 1
# If SCREENSHOT_RETRIES is not 0, the comparison between HTTP and HTTPs
# pages will be re-run if the diff is above SCREENSHOT_THRESHOLD. It
# will also introduce a delay before taking the screenshot to potentially
# overcome slight network differences between the two. The delay will
# remain in effect for links still to be processed for the site.
SCREENSHOT_RETRIES: 1
SCREENSHOT_THRESHOLD: 0.05
PHANTOM_RENDER_DELAY: 1000