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