blob: 18c4a9f3ac1a6f1d8abab06b527f5cbbe6e6bf92 [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
margaretha116307d2025-07-23 09:18:32 +020023current.api.version = v1.1
24supported.api.versions = v1.0, v1.1
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)
margarethad0f36512025-07-04 11:06:10 +020032# pipe.host=https://korap.ids-mannheim.de
margarethaca9a3242025-06-24 09:11:50 +020033# 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
margaretha47a7ba22026-05-15 23:30:06 +020052large.context.group.enabled = true
margaretha908239e2026-04-28 15:08:27 +020053max.token.context.size.large = 50
54
margaretha70536f52025-10-07 09:15:22 +020055# default false
56vc.list.statistics.enabled = true
margarethafbfe2872024-01-04 23:29:28 +010057
58# Availability regex only support |
59# It should be removed/commented when the data doesn't contain availability field.
60#
Marc Kupietze4528ee2024-07-04 16:28:37 +020061availability.regex.free = CC.*
margarethafbfe2872024-01-04 23:29:28 +010062availability.regex.public = ACA.*|QAO-NC
margaretha82c75c22024-12-11 09:36:50 +010063# The regex should be specific and make the access distinguishable
64# availability.regex.all = QAO.*
65availability.regex.all = QAO-NC-LOC:ids.*
margarethafbfe2872024-01-04 23:29:28 +010066
margaretha954838d2026-02-18 15:39:47 +010067# Rate limiting for authenticated users
68#
margarethaa93be6a2026-05-18 10:46:50 +020069# Enable or disable rate limiting (true/false)
70ratelimit.enabled = true
margaretha954838d2026-02-18 15:39:47 +010071# Number of requests allowed per time period
72ratelimit.refill.tokens = 5
73# Time period for token refill (format: 1S, 30M, 1H, 1D)
74ratelimit.refill.period = 1M
75# Maximum burst capacity (tokens that can be consumed immediately)
76ratelimit.burst.capacity = 5
77# Maximum number of rate limit buckets to keep in memory
78ratelimit.max.buckets = 10000
79# Time to live for unused rate limit buckets
80ratelimit.bucket.ttl = 6H
margarethafbfe2872024-01-04 23:29:28 +010081
margarethafbfe2872024-01-04 23:29:28 +010082# options referring to the security module!
83
84# OAuth
85# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
86# oauth.password.authentication values)
87#
88oauth2.password.authentication = TEST
89oauth2.native.client.host = korap.ids-mannheim.de
90oauth2.max.attempts = 2
91# expiry in seconds (S), minutes (M), hours (H), days (D)
92oauth2.access.token.expiry = 3M
93oauth2.refresh.token.expiry = 90D
94oauth2.authorization.code.expiry = 10M
95# -- scopes separated by space
96oauth2.default.scopes = search match_info
97oauth2.client.credentials.scopes = client_info
98
99oauth2.initial.super.client=true
100
101
102# see SecureRandom Number Generation Algorithms
103# optional
104security.secure.random.algorithm=SHA1PRNG
105
106# see MessageDigest Algorithms
107# default MD5
108security.md.algoritm = SHA-256
109
110# secure hash support: BCRYPT
111security.secure.hash.algorithm=BCRYPT
112security.encryption.loadFactor = 10
113
114# DEPRECATED
115# JWT
116security.jwt.issuer=https://korap.ids-mannheim.de
117security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
118
119# token expiration time
120security.longTokenTTL = 1D
121security.tokenTTL = 2S
122security.shortTokenTTL = 1S
123
124# Session authentication
125security.idleTimeoutDuration = 25M
126security.multipleLogIn = true
127security.loginAttemptNum = 3
128security.authAttemptTTL = 45M