blob: 913e2edf5697d0908543b13eb14ce0f73a5939c0 [file] [log] [blame]
margaretha1960ea52023-02-28 11:20:15 +01001# Krill settings
2#
margarethacfea1ae2018-01-15 20:27:26 +01003krill.indexDir = ../sample-index
margarethafc9e4072017-08-29 18:34:01 +02004
5krill.index.commit.count = 134217000
6krill.index.commit.log = log/krill.commit.log
7krill.index.commit.auto = 500
8krill.index.relations.max = 100
margaretha1960ea52023-02-28 11:20:15 +01009# Directory path of virtual corpora to cache
margaretha1b320452018-08-02 16:56:25 +020010krill.namedVC = vc
margarethaad1300b2021-12-13 17:36:29 +010011krill.test = true
margarethafc9e4072017-08-29 18:34:01 +020012
margaretha1960ea52023-02-28 11:20:15 +010013# LDAP configuration file
14#
margarethaf9b99b02022-05-25 13:30:04 +020015ldap.config = src/test/resources/test-ldap.conf
margaretha56e8e552017-12-05 16:31:21 +010016
margaretha1960ea52023-02-28 11:20:15 +010017# Kustvakt versions
18#
margarethaee0cbfe2018-08-28 17:47:14 +020019# multiple versions separated by space
margaretha3d55b002019-03-19 12:00:44 +010020current.api.version = v1.0
margarethaee0cbfe2018-08-28 17:47:14 +020021supported.api.version = v0.1 v1.0
22
margaretha1960ea52023-02-28 11:20:15 +010023# Server
24#
margaretha56e8e552017-12-05 16:31:21 +010025server.port=8089
26server.host=localhost
27
margaretha1960ea52023-02-28 11:20:15 +010028# Mail settings
29#
margarethaa86b1412018-02-21 20:40:35 +010030mail.enabled = false
31mail.receiver = test@localhost
32mail.sender = noreply@ids-mannheim.de
margaretha7d0165c2018-02-26 15:31:37 +010033mail.address.retrieval = test
margarethaa86b1412018-02-21 20:40:35 +010034
margaretha1960ea52023-02-28 11:20:15 +010035# Mail.templates
36#
margarethaa86b1412018-02-21 20:40:35 +010037template.group.invitation = notification.vm
38
margaretha1960ea52023-02-28 11:20:15 +010039# Default foundries for specific layers (optional)
40#
margaretha4fa4b062019-01-28 19:43:30 +010041default.foundry.partOfSpeech = tt
42default.foundry.lemma = tt
43default.foundry.orthography = opennlp
44default.foundry.dependency = malt
45default.foundry.constituent = corenlp
46default.foundry.morphology = marmot
margaretha47a72a82019-07-03 16:00:54 +020047default.foundry.surface = base
margarethafc9e4072017-08-29 18:34:01 +020048
margaretha1960ea52023-02-28 11:20:15 +010049# Delete configuration (default hard)
50#
margaretha2c019fa2018-02-01 19:50:51 +010051# delete.auto.group = hard
52delete.group = soft
53delete.group.member = soft
54
margaretha9e73c0e2023-05-05 16:51:49 +020055# Virtual corpus and queries
56max.user.persistent.queries = 5
57
margaretha1960ea52023-02-28 11:20:15 +010058# Availability regex only support |
59# It should be removed/commented when the data doesn't contain availability field.
60#
margarethac38c8562017-11-21 19:02:08 +010061availability.regex.free = CC-BY.*
margaretha351f7692019-02-06 19:36:52 +010062availability.regex.public = ACA.*|QAO-NC
margarethac38c8562017-11-21 19:02:08 +010063availability.regex.all = QAO.*
margarethafc9e4072017-08-29 18:34:01 +020064
margarethafc9e4072017-08-29 18:34:01 +020065
margaretha1960ea52023-02-28 11:20:15 +010066# Define resource filters for search and match info API
67# AuthenticationFilter activates authentication using OAuth2 tokens
68# DemoUserFilter allows access to API without login
69#
70# Default values: AuthenticationFilter,DemoUserFilter
71#
72search.resource.filters=AuthenticationFilter,DemoUserFilter
73
74
75# options referring to the security module!
76
77# OAuth
78# (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible
79# oauth.password.authentication values)
80#
margaretha9c78e1a2018-06-27 14:12:35 +020081oauth2.password.authentication = TEST
82oauth2.native.client.host = korap.ids-mannheim.de
margarethabe4c5c92018-05-03 18:55:49 +020083oauth2.max.attempts = 2
margaretha064eb6f2018-07-10 18:33:01 +020084# expiry in seconds (S), minutes (M), hours (H), days (D)
margaretha85273f12019-02-04 18:13:17 +010085oauth2.access.token.expiry = 3M
margaretha064eb6f2018-07-10 18:33:01 +020086oauth2.refresh.token.expiry = 90D
87oauth2.authorization.code.expiry = 10M
margarethabe4c5c92018-05-03 18:55:49 +020088# -- scopes separated by space
margaretha885404d2021-06-11 18:34:33 +020089oauth2.default.scopes = search match_info
margaretha9c78e1a2018-06-27 14:12:35 +020090oauth2.client.credentials.scopes = client_info
91
margaretha3181b8d2022-05-31 11:51:47 +020092oauth2.initial.super.client=true
93
margaretha19295962018-06-26 16:00:47 +020094
margaretha1960ea52023-02-28 11:20:15 +010095# see SecureRandom Number Generation Algorithms
96# optional
margaretha33fa3d92018-07-26 13:50:17 +020097security.secure.random.algorithm=SHA1PRNG
98
margaretha1960ea52023-02-28 11:20:15 +010099# see MessageDigest Algorithms
100# default MD5
margaretha33fa3d92018-07-26 13:50:17 +0200101security.md.algoritm = SHA-256
102
margaretha1960ea52023-02-28 11:20:15 +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
margaretha1960ea52023-02-28 11:20:15 +0100107# DEPRECATED
108# JWT
margaretha2618beb2020-01-24 14:12:28 +0100109security.jwt.issuer=https://korap.ids-mannheim.de
110security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits
111
margaretha1960ea52023-02-28 11:20:15 +0100112# token expiration time
margaretha2618beb2020-01-24 14:12:28 +0100113security.longTokenTTL = 1D
114security.tokenTTL = 2S
115security.shortTokenTTL = 1S
116
117# Session authentication
margarethafc9e4072017-08-29 18:34:01 +0200118security.idleTimeoutDuration = 25M
119security.multipleLogIn = true
120security.loginAttemptNum = 3
121security.authAttemptTTL = 45M