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 | |
| 13 | # LDAP configuration file |
| 14 | # |
| 15 | ldap.config = src/test/resources/test-ldap.conf |
| 16 | |
| 17 | # Kustvakt versions |
| 18 | # |
| 19 | # multiple versions separated by space |
| 20 | current.api.version = v1.0 |
| 21 | supported.api.version = v0.1 v1.0 |
| 22 | |
| 23 | # Server |
| 24 | # |
| 25 | server.port=8089 |
| 26 | server.host=localhost |
| 27 | |
| 28 | # Mail settings |
| 29 | # |
| 30 | mail.enabled = false |
| 31 | mail.receiver = test@localhost |
| 32 | mail.sender = noreply@ids-mannheim.de |
| 33 | mail.address.retrieval = test |
| 34 | |
| 35 | # Mail.templates |
| 36 | # |
| 37 | template.group.invitation = notification.vm |
| 38 | |
| 39 | # Default foundries for specific layers (optional) |
| 40 | # |
| 41 | default.foundry.partOfSpeech = tt |
| 42 | default.foundry.lemma = tt |
| 43 | default.foundry.orthography = opennlp |
| 44 | default.foundry.dependency = malt |
| 45 | default.foundry.constituent = corenlp |
| 46 | default.foundry.morphology = marmot |
| 47 | default.foundry.surface = base |
| 48 | |
| 49 | # Delete configuration (default hard) |
| 50 | # |
| 51 | # delete.auto.group = hard |
| 52 | delete.group = soft |
| 53 | delete.group.member = soft |
| 54 | |
| 55 | # Virtual corpus and queries |
| 56 | max.user.persistent.queries = 5 |
| 57 | |
| 58 | # Availability regex only support | |
| 59 | # It should be removed/commented when the data doesn't contain availability field. |
| 60 | # |
| 61 | availability.regex.free = CC-BY.* |
| 62 | availability.regex.public = ACA.*|QAO-NC |
| 63 | availability.regex.all = QAO.* |
| 64 | |
| 65 | |
| 66 | # 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 | # |
| 72 | search.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 | # |
| 81 | oauth2.password.authentication = TEST |
| 82 | oauth2.native.client.host = korap.ids-mannheim.de |
| 83 | oauth2.max.attempts = 2 |
| 84 | # expiry in seconds (S), minutes (M), hours (H), days (D) |
| 85 | oauth2.access.token.expiry = 3M |
| 86 | oauth2.refresh.token.expiry = 90D |
| 87 | oauth2.authorization.code.expiry = 10M |
| 88 | # -- scopes separated by space |
| 89 | oauth2.default.scopes = search match_info |
| 90 | oauth2.client.credentials.scopes = client_info |
| 91 | |
| 92 | oauth2.initial.super.client=true |
| 93 | |
| 94 | |
| 95 | # see SecureRandom Number Generation Algorithms |
| 96 | # optional |
| 97 | security.secure.random.algorithm=SHA1PRNG |
| 98 | |
| 99 | # see MessageDigest Algorithms |
| 100 | # default MD5 |
| 101 | security.md.algoritm = SHA-256 |
| 102 | |
| 103 | # secure hash support: BCRYPT |
| 104 | security.secure.hash.algorithm=BCRYPT |
| 105 | security.encryption.loadFactor = 10 |
| 106 | |
| 107 | # DEPRECATED |
| 108 | # JWT |
| 109 | security.jwt.issuer=https://korap.ids-mannheim.de |
| 110 | security.sharedSecret=this-is-shared-secret-code-for-JWT-Signing.It-must-contains-minimum-256-bits |
| 111 | |
| 112 | # token expiration time |
| 113 | security.longTokenTTL = 1D |
| 114 | security.tokenTTL = 2S |
| 115 | security.shortTokenTTL = 1S |
| 116 | |
| 117 | # Session authentication |
| 118 | security.idleTimeoutDuration = 25M |
| 119 | security.multipleLogIn = true |
| 120 | security.loginAttemptNum = 3 |
| 121 | security.authAttemptTTL = 45M |