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 | |
| 33 | # Mail settings |
| 34 | # |
| 35 | mail.enabled = false |
| 36 | mail.receiver = test@localhost |
| 37 | mail.sender = noreply@ids-mannheim.de |
| 38 | mail.address.retrieval = test |
| 39 | |
| 40 | # Mail.templates |
| 41 | # |
| 42 | template.group.invitation = notification.vm |
| 43 | |
| 44 | # Default foundries for specific layers (optional) |
| 45 | # |
| 46 | default.foundry.partOfSpeech = tt |
| 47 | default.foundry.lemma = tt |
| 48 | default.foundry.orthography = opennlp |
| 49 | default.foundry.dependency = malt |
| 50 | default.foundry.constituent = corenlp |
| 51 | default.foundry.morphology = marmot |
| 52 | default.foundry.surface = base |
| 53 | |
| 54 | # Delete configuration (default hard) |
| 55 | # |
| 56 | # delete.auto.group = hard |
| 57 | delete.group = soft |
| 58 | delete.group.member = soft |
| 59 | |
| 60 | # Virtual corpus and queries |
| 61 | max.user.persistent.queries = 5 |
| 62 | |
| 63 | # Availability regex only support | |
| 64 | # It should be removed/commented when the data doesn't contain availability field. |
| 65 | # |
Marc Kupietz | e4528ee | 2024-07-04 16:28:37 +0200 | [diff] [blame] | 66 | availability.regex.free = CC.* |
margaretha | 46e2c95 | 2024-05-23 09:09:54 +0200 | [diff] [blame] | 67 | availability.regex.public = ACA.*|QAO-NC |
| 68 | availability.regex.all = QAO.* |
| 69 | |
| 70 | |
margaretha | 46e2c95 | 2024-05-23 09:09:54 +0200 | [diff] [blame] | 71 | # options referring to the security module! |
| 72 | |
| 73 | # OAuth |
| 74 | # (see de.ids_mannheim.korap.constant.AuthenticationMethod for possible |
| 75 | # oauth.password.authentication values) |
| 76 | # |
| 77 | oauth2.password.authentication = TEST |
| 78 | oauth2.native.client.host = korap.ids-mannheim.de |
| 79 | oauth2.max.attempts = 2 |
| 80 | # expiry in seconds (S), minutes (M), hours (H), days (D) |
| 81 | oauth2.access.token.expiry = 3M |
| 82 | oauth2.refresh.token.expiry = 90D |
| 83 | oauth2.authorization.code.expiry = 10M |
| 84 | # -- scopes separated by space |
| 85 | oauth2.default.scopes = search match_info |
| 86 | oauth2.client.credentials.scopes = client_info |
| 87 | |
| 88 | oauth2.initial.super.client=true |
| 89 | |
| 90 | |
| 91 | # see SecureRandom Number Generation Algorithms |
| 92 | # optional |
| 93 | security.secure.random.algorithm=SHA1PRNG |
| 94 | |
| 95 | # see MessageDigest Algorithms |
| 96 | # default MD5 |
| 97 | security.md.algoritm = SHA-256 |
| 98 | |
| 99 | # secure hash support: BCRYPT |
| 100 | security.secure.hash.algorithm=BCRYPT |
| 101 | security.encryption.loadFactor = 10 |
| 102 | |
| 103 | # DEPRECATED |
| 104 | # JWT |
| 105 | security.jwt.issuer=https://korap.ids-mannheim.de |
| 106 | security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits |
| 107 | |
| 108 | # token expiration time |
| 109 | security.longTokenTTL = 1D |
| 110 | security.tokenTTL = 2S |
| 111 | security.shortTokenTTL = 1S |
| 112 | |
| 113 | # Session authentication |
| 114 | security.idleTimeoutDuration = 25M |
| 115 | security.multipleLogIn = true |
| 116 | security.loginAttemptNum = 3 |
| 117 | security.authAttemptTTL = 45M |