From 73b86e00f01cb49cbfe83aec0ed40ee28505c7dc Mon Sep 17 00:00:00 2001 From: eikek Date: Wed, 7 Jul 2021 21:21:14 +0200 Subject: [PATCH] Provide admin endpoint section in the config by docker setup --- docker/docker-compose/docspell.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docker/docker-compose/docspell.conf b/docker/docker-compose/docspell.conf index ba746950..963d3ed9 100644 --- a/docker/docker-compose/docspell.conf +++ b/docker/docker-compose/docspell.conf @@ -34,6 +34,17 @@ docspell.server { header-value = ${?DOCSPELL_HEADER_VALUE} } } + + # This is a special endpoint that allows some basic administration. + # + # 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. full-text-search { enabled = true