-
Notifications
You must be signed in to change notification settings - Fork 6
/
cavil.conf
73 lines (55 loc) · 2.3 KB
/
cavil.conf
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
65
66
67
68
69
70
71
72
73
{
# Secrets used to cryptographically sign session cookies
secrets => ['this_is_not_secure'],
# Directory where source code to be scanned is stored, the space requirement can be significant since archives are
# decompressed recursively and kept here for future reindexing
checkout_dir => '/data/auto-co/legal-bot',
# Cache directory for temporary files shared between license pattern indexing processes
cache_dir => app->home->child('cache'),
# Temporary directory for incoming files, before they are moved to "checkout_dir"
tmp_dir => '/data/auto-co/incoming',
# Optional OpenID Connect configuration for authentication
openid => {
key => 'APP_NAME',
secret => 'APP_SECRET',
well_known_url => 'https://id.opensuse.org/openidc/.well-known/openid-configuration'
},
# Authentication credentials for the Open Build Service (Basic or SSH)
obs => {
'api.opensuse.org' => {
user => 'OBS_USER',
password => 'OBS_PASSWORD'
},
'api.suse.de' => {
user => 'IBS_USER',
ssh_key => 'SSH_PRIVATE_KEY_PATH',
embargoed_bugs => 'https://smash.suse.de/api/embargoed-bugs/'
}
},
# Token authentication strings for the dedicated bot REST API
tokens => [],
# PostgreSQL server connection string
pg => 'postgresql://sri@/legaldb-local',
# Maximum acceptable risk for reports to be automatically considered "acceptable"
acceptable_risk => 3,
# Packages that are always considered "acceptable"
acceptable_packages => [],
# Number of files per indexer process
index_bucket_average => 600,
# Number of packages per cleanup process
cleanup_bucket_average => 400,
# Maximum number of files to show in reports per risk level
min_files_short_report => 20,
# Maximum length of email addresses to collect for reports
max_email_url_size => 2048,
# Memory limit for background jobs
max_task_memory => 6_000_000_000,
# Memory limit for application server worker processes
max_worker_rss => 600000,
# Maximum number of files with keyword matches to show in reports
max_expanded_files => 100,
# Always generate an SPDX report when a package has been indexed (instead of only on-demand)
always_generate_spdx_reports => 0,
# URL for machine learning classifier
classifier => 'http://localhost:5000'
}