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