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