blob: c80708014a3e0e565f6a6c79ec7b5179c32337d6 [file] [log] [blame]
margaretha46e2c952024-05-23 09:09:54 +02001# Krill settings
2#
3# A sample configuration for the DNB instance
4
margaretha6c6a6e82026-05-15 11:13:01 +02005krill.match.max.token=12
margaretha46e2c952024-05-23 09:09:54 +02006krill.context.max.token=25
margaretha6c6a6e82026-05-15 11:13:01 +02007krill.kwic.max.token = 51
8krill.context.max.char=100
9#krill.context.left.maxShrink = max
10#krill.context.right.maxShrink = max
11
margaretha46e2c952024-05-23 09:09:54 +020012
13krill.indexDir = sample-index
14
15krill.index.commit.count = 134217000
16krill.index.commit.log = log/krill.commit.log
17krill.index.commit.auto = 500
18krill.index.relations.max = 100
19# Directory path of virtual corpora to cache
20krill.namedVC = vc
21krill.test = true
22
23# LDAP configuration file
24#
25ldap.config = src/test/resources/test-ldap.conf
26
27# Kustvakt versions
28#
margarethacdd26e62024-07-12 12:40:26 +020029# multiple versions comma separated
margaretha46e2c952024-05-23 09:09:54 +020030current.api.version = v1.0
margarethacdd26e62024-07-12 12:40:26 +020031supported.api.versions = v1.0
margaretha46e2c952024-05-23 09:09:54 +020032
33# Server
34#
35server.port=8089
36server.host=localhost
37
margaretha46e2c952024-05-23 09:09:54 +020038# Default foundries for specific layers (optional)
39#
40default.foundry.partOfSpeech = tt
41default.foundry.lemma = tt
42default.foundry.orthography = opennlp
43default.foundry.dependency = malt
44default.foundry.constituent = corenlp
45default.foundry.morphology = marmot
46default.foundry.surface = base
47
margaretha46e2c952024-05-23 09:09:54 +020048# Virtual corpus and queries
49max.user.persistent.queries = 5
50
51# Availability regex only support |
52# It should be removed/commented when the data doesn't contain availability field.
53#
Marc Kupietze4528ee2024-07-04 16:28:37 +020054availability.regex.free = CC.*
margaretha46e2c952024-05-23 09:09:54 +020055availability.regex.public = ACA.*|QAO-NC
56availability.regex.all = QAO.*
57
58
margaretha46e2c952024-05-23 09:09:54 +020059# options referring to the security module!
60
61# OAuth
62# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
63# oauth.password.authentication values)
64#
65oauth2.password.authentication = TEST
66oauth2.native.client.host = korap.ids-mannheim.de
67oauth2.max.attempts = 2
68# expiry in seconds (S), minutes (M), hours (H), days (D)
69oauth2.access.token.expiry = 3M
70oauth2.refresh.token.expiry = 90D
71oauth2.authorization.code.expiry = 10M
72# -- scopes separated by space
73oauth2.default.scopes = search match_info
74oauth2.client.credentials.scopes = client_info
75
76oauth2.initial.super.client=true
77
78
79# see SecureRandom Number Generation Algorithms
80# optional
81security.secure.random.algorithm=SHA1PRNG
82
83# see MessageDigest Algorithms
84# default MD5
85security.md.algoritm = SHA-256
86
87# secure hash support: BCRYPT
88security.secure.hash.algorithm=BCRYPT
89security.encryption.loadFactor = 10
90
91# DEPRECATED
92# JWT
93security.jwt.issuer=https://korap.ids-mannheim.de
94security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
95
96# token expiration time
97security.longTokenTTL = 1D
98security.tokenTTL = 2S
99security.shortTokenTTL = 1S
100
101# Session authentication
102security.idleTimeoutDuration = 25M
103security.multipleLogIn = true
104security.loginAttemptNum = 3
105security.authAttemptTTL = 45M