blob: 128ad0cac9324cffb328cca37c9485f024bb033e [file] [log] [blame]
margaretha56e8e552017-12-05 16:31:21 +01001#Krill
margarethaf68daa62017-09-21 02:11:24 +02002krill.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
margarethad7163122022-04-11 09:42:41 +02008# Directory path of virtual corpora to cache
margaretha51e5e3f2018-10-17 15:10:03 +02009#krill.namedVC = vc
margarethafc9e4072017-08-29 18:34:01 +020010
margarethad7163122022-04-11 09:42:41 +020011# LDAP
Marc Kupietz9c22bbd2022-05-08 11:17:26 +020012ldap.config = src/main/resources/embedded-ldap-example.conf
margaretha56e8e552017-12-05 16:31:21 +010013
14# Kustvakt
Marc Kupietz805afde2020-03-24 09:08:50 +010015api.welcome.message = Welcome to KorAP API!
margaretha2ea9a1e2019-01-11 16:37:21 +010016current.api.version = v1.0
margarethaee0cbfe2018-08-28 17:47:14 +020017# multiple versions separated by space
margaretha2ea9a1e2019-01-11 16:37:21 +010018# supported.api.version = v1.0
margarethaee0cbfe2018-08-28 17:47:14 +020019
margarethad7163122022-04-11 09:42:41 +020020# server
margarethaaecee1b2018-02-20 14:44:21 +010021server.port=8089
22server.host=localhost
23
margarethad7163122022-04-11 09:42:41 +020024# mail settings
margaretha58e18632018-02-15 13:04:42 +010025mail.enabled = false
margarethaa86b1412018-02-21 20:40:35 +010026mail.receiver = test@localhost
margarethaaecee1b2018-02-20 14:44:21 +010027mail.sender = noreply@ids-mannheim.de
margaretha7d0165c2018-02-26 15:31:37 +010028mail.address.retrieval = test
margaretha58e18632018-02-15 13:04:42 +010029
margarethad7163122022-04-11 09:42:41 +020030# mail.templates
margarethaa86b1412018-02-21 20:40:35 +010031template.group.invitation = notification.vm
32
margarethad7163122022-04-11 09:42:41 +020033# default foundries for specific layers
margaretha4fa4b062019-01-28 19:43:30 +010034default.foundry.partOfSpeech = tt
35default.foundry.lemma = tt
36default.foundry.orthography = opennlp
37default.foundry.dependency = malt
38default.foundry.constituent = corenlp
39default.foundry.morphology = marmot
margaretha798e8bd2019-02-06 15:48:58 +010040default.foundry.surface = base
margarethac38c8562017-11-21 19:02:08 +010041
margarethad7163122022-04-11 09:42:41 +020042# delete configuration (default hard)
margaretha2c019fa2018-02-01 19:50:51 +010043# delete.auto.group = hard
44delete.group = soft
45delete.group.member = soft
46
margaretha1960ea52023-02-28 11:20:15 +010047
48# Availability regex only support |
49# It should be removed/commented when the data doesn't contain availability field.
50#
margarethac38c8562017-11-21 19:02:08 +010051availability.regex.free = CC-BY.*
margaretha1960ea52023-02-28 11:20:15 +010052availability.regex.public = ACA.*|QAO-NC
margarethac38c8562017-11-21 19:02:08 +010053availability.regex.all = QAO.*
margarethafc9e4072017-08-29 18:34:01 +020054
margaretha1960ea52023-02-28 11:20:15 +010055
56# Define resource filters for search and match info API
57# AuthenticationFilter activates authentication using OAuth2 tokens
58# DemoUserFilter allows access to API without login
59#
60# Default values: AuthenticationFilter,DemoUserFilter
61#
62search.resource.filters=AuthenticationFilter,DemoUserFilter
63
64
65
margarethad7163122022-04-11 09:42:41 +020066# options referring to the security module!
margarethafc9e4072017-08-29 18:34:01 +020067
margarethad7163122022-04-11 09:42:41 +020068# OAuth
69# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
70# oauth.password.authentication values)
Marc Kupietz1380c1a2022-12-04 09:51:50 +010071oauth2.password.authentication = LDAP
margarethad7163122022-04-11 09:42:41 +020072# used to determine native client, currently not used
73# oauth2.native.client.host = korap.ids-mannheim.de
margaretha064eb6f2018-07-10 18:33:01 +020074oauth2.max.attempts = 1
75# expiry in seconds (S), minutes (M), hours (H), days (D)
76oauth2.access.token.expiry = 1D
77oauth2.refresh.token.expiry = 90D
margarethad7163122022-04-11 09:42:41 +020078# default 365D
79# oauth2.access.token.long.expiry = 365D
80# oauth2.refresh.token.long.expiry = 365D
margaretha064eb6f2018-07-10 18:33:01 +020081oauth2.authorization.code.expiry = 10M
margarethad7163122022-04-11 09:42:41 +020082# scopes separated by space
margaretha20f31232018-07-09 17:49:39 +020083oauth2.default.scopes = search match_info
margarethad7cab212018-07-02 19:01:43 +020084oauth2.client.credentials.scopes = client_info
margaretha6374f722018-04-17 18:45:57 +020085
margaretha33fa3d92018-07-26 13:50:17 +020086## see SecureRandom Number Generation Algorithms
margaretha4bd61252021-06-11 14:11:31 +020087## optional
88# security.secure.random.algorithm=SHA1PRNG
margaretha33fa3d92018-07-26 13:50:17 +020089
90## see MessageDigest Algorithms
91## default MD5
92security.md.algoritm = SHA-256
93
margaretha2618beb2020-01-24 14:12:28 +010094### secure hash support: BCRYPT
margaretha33fa3d92018-07-26 13:50:17 +020095security.secure.hash.algorithm=BCRYPT
margaretha2618beb2020-01-24 14:12:28 +010096security.encryption.loadFactor = 10
margarethafc9e4072017-08-29 18:34:01 +020097
margaretha1960ea52023-02-28 11:20:15 +010098# DEPRECATED
margaretha2618beb2020-01-24 14:12:28 +010099# JWT
100security.jwt.issuer=korap.ids-mannheim.de
101security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
102
103## token expiration (used in other authentication provider than OAuth2)
104security.longTokenTTL=150D
105security.tokenTTL=72H
106security.shortTokenTTL=45M
107
108# Session authentication
margarethafc9e4072017-08-29 18:34:01 +0200109security.idleTimeoutDuration = 25M
110security.multipleLogIn = true
111security.loginAttemptNum = 3
margaretha1960ea52023-02-28 11:20:15 +0100112security.authAttemptTTL = 45M