Remove fulltext recreate-key config value

It's now in the admin routes, protected by the
`admin-endpoint.secret`.
This commit is contained in:
Eike Kettner
2021-01-04 15:16:32 +01:00
parent 306f064ad9
commit 2a172ce720
6 changed files with 77 additions and 46 deletions

View File

@ -117,10 +117,13 @@ docspell.server {
# installed the app and have access to the system. Normal users
# should not have access and therefore a secret must be provided in
# order to access it.
#
# This is used for some endpoints, for example:
# - re-create complete fulltext index:
# curl -XPOST -H'Docspell-Admin-Secret: xyz' http://localhost:7880/api/v1/admin/fts/reIndexAll
admin-endpoint {
# The secret. If empty, the endpoint is disabled.
secret = ""
}
# Configuration of the full-text search engine.
@ -132,14 +135,6 @@ docspell.server {
# Currently the SOLR search platform is supported.
enabled = false
# When re-creating the complete index via a REST call, this key
# is required. If left empty (the default), recreating the index
# is disabled.
#
# Example curl command:
# curl -XPOST http://localhost:7880/api/v1/open/fts/reIndexAll/test123
recreate-key = ""
# Configuration for the SOLR backend.
solr = {
# The URL to solr

View File

@ -59,7 +59,7 @@ object Config {
}
}
case class FullTextSearch(enabled: Boolean, recreateKey: Ident, solr: SolrConfig)
case class FullTextSearch(enabled: Boolean, solr: SolrConfig)
object FullTextSearch {}