blob: 045dda9f9fabfb97dda0c7047318cd6d9b15de9a [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
margarethaca9a3242025-06-24 09:11:50 +020031# Pipe (optional)
32# pipe.host=https://korap.ids-mannheim.de (default)
33# LOCALHOST ONLY FOR TESTING
34pipe.host=http://localhost
35
margarethae6ebfbc2024-10-07 08:39:42 +020036## Cache
37cache.total.results.enabled = true
38
margarethafbfe2872024-01-04 23:29:28 +010039# Default foundries for specific layers (optional)
40#
41default.foundry.partOfSpeech = tt
42default.foundry.lemma = tt
43default.foundry.orthography = opennlp
44default.foundry.dependency = malt
45default.foundry.constituent = corenlp
46default.foundry.morphology = marmot
47default.foundry.surface = base
48
margarethafbfe2872024-01-04 23:29:28 +010049# Virtual corpus and queries
50max.user.persistent.queries = 5
margarethad0f4af82024-11-19 12:13:24 +010051max.token.context.size = 40
margarethafbfe2872024-01-04 23:29:28 +010052
53# Availability regex only support |
54# It should be removed/commented when the data doesn't contain availability field.
55#
Marc Kupietze4528ee2024-07-04 16:28:37 +020056availability.regex.free = CC.*
margarethafbfe2872024-01-04 23:29:28 +010057availability.regex.public = ACA.*|QAO-NC
margaretha82c75c22024-12-11 09:36:50 +010058# The regex should be specific and make the access distinguishable
59# availability.regex.all = QAO.*
60availability.regex.all = QAO-NC-LOC:ids.*
margarethafbfe2872024-01-04 23:29:28 +010061
62
margarethafbfe2872024-01-04 23:29:28 +010063# options referring to the security module!
64
65# OAuth
66# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
67# oauth.password.authentication values)
68#
69oauth2.password.authentication = TEST
70oauth2.native.client.host = korap.ids-mannheim.de
71oauth2.max.attempts = 2
72# expiry in seconds (S), minutes (M), hours (H), days (D)
73oauth2.access.token.expiry = 3M
74oauth2.refresh.token.expiry = 90D
75oauth2.authorization.code.expiry = 10M
76# -- scopes separated by space
77oauth2.default.scopes = search match_info
78oauth2.client.credentials.scopes = client_info
79
80oauth2.initial.super.client=true
81
82
83# see SecureRandom Number Generation Algorithms
84# optional
85security.secure.random.algorithm=SHA1PRNG
86
87# see MessageDigest Algorithms
88# default MD5
89security.md.algoritm = SHA-256
90
91# secure hash support: BCRYPT
92security.secure.hash.algorithm=BCRYPT
93security.encryption.loadFactor = 10
94
95# DEPRECATED
96# JWT
97security.jwt.issuer=https://korap.ids-mannheim.de
98security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
99
100# token expiration time
101security.longTokenTTL = 1D
102security.tokenTTL = 2S
103security.shortTokenTTL = 1S
104
105# Session authentication
106security.idleTimeoutDuration = 25M
107security.multipleLogIn = true
108security.loginAttemptNum = 3
109security.authAttemptTTL = 45M