blob: e72b1fdcc827fe82dae21fda207764e36d7d0035 [file] [log] [blame]
margarethafc9e4072017-08-29 18:34:01 +02001## index dir
margarethacfea1ae2018-01-15 20:27:26 +01002krill.indexDir = ../sample-index
margarethafc9e4072017-08-29 18:34:01 +02003
4krill.index.commit.count = 134217000
5krill.index.commit.log = log/krill.commit.log
6krill.index.commit.auto = 500
7krill.index.relations.max = 100
margaretha1b320452018-08-02 16:56:25 +02008## Directory path of virtual corpora to cache
9krill.namedVC = vc
margarethaad1300b2021-12-13 17:36:29 +010010krill.test = true
margarethafc9e4072017-08-29 18:34:01 +020011
margaretha56e8e552017-12-05 16:31:21 +010012#LDAP
margarethaf9b99b02022-05-25 13:30:04 +020013ldap.config = src/test/resources/test-ldap.conf
margaretha56e8e552017-12-05 16:31:21 +010014
15# Kustvakt
margarethaee0cbfe2018-08-28 17:47:14 +020016# multiple versions separated by space
margaretha3d55b002019-03-19 12:00:44 +010017current.api.version = v1.0
margarethaee0cbfe2018-08-28 17:47:14 +020018supported.api.version = v0.1 v1.0
19
margaretha56e8e552017-12-05 16:31:21 +010020## server
21server.port=8089
22server.host=localhost
23
margarethaa86b1412018-02-21 20:40:35 +010024## mail settings
25mail.enabled = false
26mail.receiver = test@localhost
27mail.sender = noreply@ids-mannheim.de
margaretha7d0165c2018-02-26 15:31:37 +010028mail.address.retrieval = test
margarethaa86b1412018-02-21 20:40:35 +010029
30## mail.templates
31template.group.invitation = notification.vm
32
margaretha4fa4b062019-01-28 19:43:30 +010033## default foundries for specific layers
34default.foundry.partOfSpeech = tt
35default.foundry.lemma = tt
36default.foundry.orthography = opennlp
37default.foundry.dependency = malt
38default.foundry.constituent = corenlp
39default.foundry.morphology = marmot
margaretha47a72a82019-07-03 16:00:54 +020040default.foundry.surface = base
margarethafc9e4072017-08-29 18:34:01 +020041
margaretha2c019fa2018-02-01 19:50:51 +010042## delete configuration (default hard)
43# delete.auto.group = hard
44delete.group = soft
45delete.group.member = soft
46
margaretha56e8e552017-12-05 16:31:21 +010047## availability regex
margarethadfecb4b2017-12-12 19:32:30 +010048## only support |
margarethac38c8562017-11-21 19:02:08 +010049availability.regex.free = CC-BY.*
margaretha351f7692019-02-06 19:36:52 +010050availability.regex.public = ACA.*|QAO-NC
margarethac38c8562017-11-21 19:02:08 +010051availability.regex.all = QAO.*
margarethafc9e4072017-08-29 18:34:01 +020052
margarethafc9e4072017-08-29 18:34:01 +020053## options referring to the security module!
54
margaretha9c78e1a2018-06-27 14:12:35 +020055## OAuth
margaretha6374f722018-04-17 18:45:57 +020056### (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
57### oauth.password.authentication values)
margaretha9c78e1a2018-06-27 14:12:35 +020058oauth2.password.authentication = TEST
59oauth2.native.client.host = korap.ids-mannheim.de
margarethabe4c5c92018-05-03 18:55:49 +020060oauth2.max.attempts = 2
margaretha064eb6f2018-07-10 18:33:01 +020061# expiry in seconds (S), minutes (M), hours (H), days (D)
margaretha85273f12019-02-04 18:13:17 +010062oauth2.access.token.expiry = 3M
margaretha064eb6f2018-07-10 18:33:01 +020063oauth2.refresh.token.expiry = 90D
64oauth2.authorization.code.expiry = 10M
margarethabe4c5c92018-05-03 18:55:49 +020065# -- scopes separated by space
margaretha885404d2021-06-11 18:34:33 +020066oauth2.default.scopes = search match_info
margaretha9c78e1a2018-06-27 14:12:35 +020067oauth2.client.credentials.scopes = client_info
68
margaretha3181b8d2022-05-31 11:51:47 +020069oauth2.initial.super.client=true
70
margaretha9c78e1a2018-06-27 14:12:35 +020071## OpenId
72### multiple values are separated by space
73openid.grant.types = authorization_code
74openid.response.types = code
75openid.response.modes = query
76openid.client.auth.methods = client_secret_basic client_secret_post
77openid.token.signing.algorithms = RS256
78openid.subject.types = public
79openid.display.types = page
margarethaa2ce63d2018-06-28 10:11:43 +020080openid.supported.scopes = openid email auth_time
margaretha9c78e1a2018-06-27 14:12:35 +020081openid.support.claim.param = false
82openid.claim.types = normal
83openid.supported.claims = iss sub aud exp iat
84openid.ui.locales = en
85#openid.privacy.policy =
86#openid.term.of.service =
87openid.service.doc = https://github.com/KorAP/Kustvakt/wiki
margaretha6374f722018-04-17 18:45:57 +020088
margaretha19295962018-06-26 16:00:47 +020089## JWK
margaretha07a356a2018-07-11 19:12:21 +020090## must be set for openid
margaretha19295962018-06-26 16:00:47 +020091rsa.private = kustvakt_rsa.key
92rsa.public = kustvakt_rsa_public.key
93rsa.key.id = 74caa3a9-217c-49e6-94e9-2368fdd02c35
94
margaretha33fa3d92018-07-26 13:50:17 +020095## see SecureRandom Number Generation Algorithms
margaretha4bd61252021-06-11 14:11:31 +020096## optional
margaretha33fa3d92018-07-26 13:50:17 +020097security.secure.random.algorithm=SHA1PRNG
98
99## see MessageDigest Algorithms
100## default MD5
101security.md.algoritm = SHA-256
102
margaretha2618beb2020-01-24 14:12:28 +0100103### secure hash support: BCRYPT
margaretha33fa3d92018-07-26 13:50:17 +0200104security.secure.hash.algorithm=BCRYPT
margaretha2618beb2020-01-24 14:12:28 +0100105security.encryption.loadFactor = 10
margarethafc9e4072017-08-29 18:34:01 +0200106
margaretha2618beb2020-01-24 14:12:28 +0100107## JWT
108security.jwt.issuer=https://korap.ids-mannheim.de
109security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
110
111## token expiration time
112security.longTokenTTL = 1D
113security.tokenTTL = 2S
114security.shortTokenTTL = 1S
115
116# Session authentication
margarethafc9e4072017-08-29 18:34:01 +0200117security.idleTimeoutDuration = 25M
118security.multipleLogIn = true
119security.loginAttemptNum = 3
120security.authAttemptTTL = 45M
121
margaretha2618beb2020-01-24 14:12:28 +0100122#EM: deprecated and not used
margarethafc9e4072017-08-29 18:34:01 +0200123security.validation.stringLength = 150
124security.validation.emailLength = 50