blob: ddc8512f3da1b14c4b6588237d3c8c910d569f5a [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
59availability.regex.all = QAO.*
60
61
margarethafbfe2872024-01-04 23:29:28 +010062# options referring to the security module!
63
64# OAuth
65# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
66# oauth.password.authentication values)
67#
68oauth2.password.authentication = TEST
69oauth2.native.client.host = korap.ids-mannheim.de
70oauth2.max.attempts = 2
71# expiry in seconds (S), minutes (M), hours (H), days (D)
72oauth2.access.token.expiry = 3M
73oauth2.refresh.token.expiry = 90D
74oauth2.authorization.code.expiry = 10M
75# -- scopes separated by space
76oauth2.default.scopes = search match_info
77oauth2.client.credentials.scopes = client_info
78
79oauth2.initial.super.client=true
80
81
82# see SecureRandom Number Generation Algorithms
83# optional
84security.secure.random.algorithm=SHA1PRNG
85
86# see MessageDigest Algorithms
87# default MD5
88security.md.algoritm = SHA-256
89
90# secure hash support: BCRYPT
91security.secure.hash.algorithm=BCRYPT
92security.encryption.loadFactor = 10
93
94# DEPRECATED
95# JWT
96security.jwt.issuer=https://korap.ids-mannheim.de
97security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
98
99# token expiration time
100security.longTokenTTL = 1D
101security.tokenTTL = 2S
102security.shortTokenTTL = 1S
103
104# Session authentication
105security.idleTimeoutDuration = 25M
106security.multipleLogIn = true
107security.loginAttemptNum = 3
108security.authAttemptTTL = 45M