blob: 3b8d190e5b552ee27d224256ee28e130fd9a4b12 [file] [log] [blame]
margaretha46e2c952024-05-23 09:09:54 +02001# Krill settings
2#
3# A sample configuration for the DNB instance
4
5krill.match.max.token=1
6krill.context.max.token=25
7
8krill.indexDir = sample-index
9
10krill.index.commit.count = 134217000
11krill.index.commit.log = log/krill.commit.log
12krill.index.commit.auto = 500
13krill.index.relations.max = 100
14# Directory path of virtual corpora to cache
15krill.namedVC = vc
16krill.test = true
17
18# LDAP configuration file
19#
20ldap.config = src/test/resources/test-ldap.conf
21
22# Kustvakt versions
23#
24# multiple versions separated by space
25current.api.version = v1.0
26supported.api.version = v0.1 v1.0
27
28# Server
29#
30server.port=8089
31server.host=localhost
32
33# Mail settings
34#
35mail.enabled = false
36mail.receiver = test@localhost
37mail.sender = noreply@ids-mannheim.de
38mail.address.retrieval = test
39
40# Mail.templates
41#
42template.group.invitation = notification.vm
43
44# Default foundries for specific layers (optional)
45#
46default.foundry.partOfSpeech = tt
47default.foundry.lemma = tt
48default.foundry.orthography = opennlp
49default.foundry.dependency = malt
50default.foundry.constituent = corenlp
51default.foundry.morphology = marmot
52default.foundry.surface = base
53
54# Delete configuration (default hard)
55#
56# delete.auto.group = hard
57delete.group = soft
58delete.group.member = soft
59
60# Virtual corpus and queries
61max.user.persistent.queries = 5
62
63# Availability regex only support |
64# It should be removed/commented when the data doesn't contain availability field.
65#
66availability.regex.free = CC-BY.*
67availability.regex.public = ACA.*|QAO-NC
68availability.regex.all = QAO.*
69
70
71# Define resource filters for search and match info API
72# AuthenticationFilter activates authentication using OAuth2 tokens
73# DemoUserFilter allows access to API without login
74#
75# Default values: AuthenticationFilter,DemoUserFilter
76#
77search.resource.filters=AuthenticationFilter,DemoUserFilter
78
79
80# options referring to the security module!
81
82# OAuth
83# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
84# oauth.password.authentication values)
85#
86oauth2.password.authentication = TEST
87oauth2.native.client.host = korap.ids-mannheim.de
88oauth2.max.attempts = 2
89# expiry in seconds (S), minutes (M), hours (H), days (D)
90oauth2.access.token.expiry = 3M
91oauth2.refresh.token.expiry = 90D
92oauth2.authorization.code.expiry = 10M
93# -- scopes separated by space
94oauth2.default.scopes = search match_info
95oauth2.client.credentials.scopes = client_info
96
97oauth2.initial.super.client=true
98
99
100# see SecureRandom Number Generation Algorithms
101# optional
102security.secure.random.algorithm=SHA1PRNG
103
104# see MessageDigest Algorithms
105# default MD5
106security.md.algoritm = SHA-256
107
108# secure hash support: BCRYPT
109security.secure.hash.algorithm=BCRYPT
110security.encryption.loadFactor = 10
111
112# DEPRECATED
113# JWT
114security.jwt.issuer=https://korap.ids-mannheim.de
115security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
116
117# token expiration time
118security.longTokenTTL = 1D
119security.tokenTTL = 2S
120security.shortTokenTTL = 1S
121
122# Session authentication
123security.idleTimeoutDuration = 25M
124security.multipleLogIn = true
125security.loginAttemptNum = 3
126security.authAttemptTTL = 45M