blob: fb17890608a2afda811e8f723345d55d4af6b2c6 [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
69## OpenId
70### multiple values are separated by space
71openid.grant.types = authorization_code
72openid.response.types = code
73openid.response.modes = query
74openid.client.auth.methods = client_secret_basic client_secret_post
75openid.token.signing.algorithms = RS256
76openid.subject.types = public
77openid.display.types = page
margarethaa2ce63d2018-06-28 10:11:43 +020078openid.supported.scopes = openid email auth_time
margaretha9c78e1a2018-06-27 14:12:35 +020079openid.support.claim.param = false
80openid.claim.types = normal
81openid.supported.claims = iss sub aud exp iat
82openid.ui.locales = en
83#openid.privacy.policy =
84#openid.term.of.service =
85openid.service.doc = https://github.com/KorAP/Kustvakt/wiki
margaretha6374f722018-04-17 18:45:57 +020086
margaretha19295962018-06-26 16:00:47 +020087## JWK
margaretha07a356a2018-07-11 19:12:21 +020088## must be set for openid
margaretha19295962018-06-26 16:00:47 +020089rsa.private = kustvakt_rsa.key
90rsa.public = kustvakt_rsa_public.key
91rsa.key.id = 74caa3a9-217c-49e6-94e9-2368fdd02c35
92
margaretha33fa3d92018-07-26 13:50:17 +020093## see SecureRandom Number Generation Algorithms
margaretha4bd61252021-06-11 14:11:31 +020094## optional
margaretha33fa3d92018-07-26 13:50:17 +020095security.secure.random.algorithm=SHA1PRNG
96
97## see MessageDigest Algorithms
98## default MD5
99security.md.algoritm = SHA-256
100
margaretha2618beb2020-01-24 14:12:28 +0100101### secure hash support: BCRYPT
margaretha33fa3d92018-07-26 13:50:17 +0200102security.secure.hash.algorithm=BCRYPT
margaretha2618beb2020-01-24 14:12:28 +0100103security.encryption.loadFactor = 10
margarethafc9e4072017-08-29 18:34:01 +0200104
margaretha2618beb2020-01-24 14:12:28 +0100105## JWT
106security.jwt.issuer=https://korap.ids-mannheim.de
107security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
108
109## token expiration time
110security.longTokenTTL = 1D
111security.tokenTTL = 2S
112security.shortTokenTTL = 1S
113
114# Session authentication
margarethafc9e4072017-08-29 18:34:01 +0200115security.idleTimeoutDuration = 25M
116security.multipleLogIn = true
117security.loginAttemptNum = 3
118security.authAttemptTTL = 45M
119
margaretha2618beb2020-01-24 14:12:28 +0100120#EM: deprecated and not used
margarethafc9e4072017-08-29 18:34:01 +0200121security.validation.stringLength = 150
122security.validation.emailLength = 50