blob: d40c39f59571c67343683ea6a714abc79f5a057f [file] [log] [blame]
margarethafbfe2872024-01-04 23:29:28 +01001# Krill settings
2#
3krill.indexDir = sample-index
4
5krill.index.commit.count = 134217000
6krill.index.commit.log = log/krill.commit.log
7krill.index.commit.auto = 500
8krill.index.relations.max = 100
9# Directory path of virtual corpora to cache
10krill.namedVC = vc
11krill.test = true
12
margaretha46e2c952024-05-23 09:09:54 +020013krill.match.max.token=50
14krill.context.max.token=60
15
margarethafbfe2872024-01-04 23:29:28 +010016# LDAP configuration file
17#
18ldap.config = src/test/resources/test-ldap.conf
19
20# Kustvakt versions
21#
margarethacdd26e62024-07-12 12:40:26 +020022# multiple versions comma separated
margarethafbfe2872024-01-04 23:29:28 +010023current.api.version = v1.0
margarethacdd26e62024-07-12 12:40:26 +020024supported.api.versions = v0.1, v1.0
margarethafbfe2872024-01-04 23:29:28 +010025
26# Server
27#
28server.port=8089
29server.host=localhost
30
margarethae6ebfbc2024-10-07 08:39:42 +020031## Cache
32cache.total.results.enabled = true
33
margarethafbfe2872024-01-04 23:29:28 +010034# Default foundries for specific layers (optional)
35#
36default.foundry.partOfSpeech = tt
37default.foundry.lemma = tt
38default.foundry.orthography = opennlp
39default.foundry.dependency = malt
40default.foundry.constituent = corenlp
41default.foundry.morphology = marmot
42default.foundry.surface = base
43
44# Delete configuration (default hard)
45#
46# delete.auto.group = hard
margaretha291cf402024-07-18 09:49:15 +020047#delete.group = soft
margarethafbfe2872024-01-04 23:29:28 +010048delete.group.member = soft
49
50# Virtual corpus and queries
51max.user.persistent.queries = 5
margarethad0f4af82024-11-19 12:13:24 +010052max.token.context.size = 40
margarethafbfe2872024-01-04 23:29:28 +010053
54# Availability regex only support |
55# It should be removed/commented when the data doesn't contain availability field.
56#
Marc Kupietze4528ee2024-07-04 16:28:37 +020057availability.regex.free = CC.*
margarethafbfe2872024-01-04 23:29:28 +010058availability.regex.public = ACA.*|QAO-NC
margaretha82c75c22024-12-11 09:36:50 +010059# The regex should be specific and make the access distinguishable
60# availability.regex.all = QAO.*
61availability.regex.all = QAO-NC-LOC:ids.*
margarethafbfe2872024-01-04 23:29:28 +010062
63
margarethafbfe2872024-01-04 23:29:28 +010064# options referring to the security module!
65
66# OAuth
67# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
68# oauth.password.authentication values)
69#
70oauth2.password.authentication = TEST
71oauth2.native.client.host = korap.ids-mannheim.de
72oauth2.max.attempts = 2
73# expiry in seconds (S), minutes (M), hours (H), days (D)
74oauth2.access.token.expiry = 3M
75oauth2.refresh.token.expiry = 90D
76oauth2.authorization.code.expiry = 10M
77# -- scopes separated by space
78oauth2.default.scopes = search match_info
79oauth2.client.credentials.scopes = client_info
80
81oauth2.initial.super.client=true
82
83
84# see SecureRandom Number Generation Algorithms
85# optional
86security.secure.random.algorithm=SHA1PRNG
87
88# see MessageDigest Algorithms
89# default MD5
90security.md.algoritm = SHA-256
91
92# secure hash support: BCRYPT
93security.secure.hash.algorithm=BCRYPT
94security.encryption.loadFactor = 10
95
96# DEPRECATED
97# JWT
98security.jwt.issuer=https://korap.ids-mannheim.de
99security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
100
101# token expiration time
102security.longTokenTTL = 1D
103security.tokenTTL = 2S
104security.shortTokenTTL = 1S
105
106# Session authentication
107security.idleTimeoutDuration = 25M
108security.multipleLogIn = true
109security.loginAttemptNum = 3
110security.authAttemptTTL = 45M