From 2a959d4e59bfbb325ab38c16bd8e6e21830f8f8c Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 10 Aug 2023 15:14:30 +0200 Subject: [PATCH] add password to FTS Signed-off-by: Simon L --- Containers/nextcloud/entrypoint.sh | 2 +- php/containers.json | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index e2775f5697f..5db7d152738 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -705,7 +705,7 @@ if [ "$FULLTEXTSEARCH_ENABLED" = 'yes' ]; then php /var/www/html/occ app:update files_fulltextsearch fi php /var/www/html/occ fulltextsearch:configure '{"search_platform":"OCA\\FullTextSearch_Elasticsearch\\Platform\\ElasticSearchPlatform"}' - php /var/www/html/occ fulltextsearch_elasticsearch:configure "{\"elastic_host\":\"http://$FULLTEXTSEARCH_HOST:9200\",\"elastic_index\":\"nextcloud-aio\"}" + php /var/www/html/occ fulltextsearch_elasticsearch:configure "{\"elastic_host\":\"http://elastic:$FULLTEXTSEARCH_PASSWORD@$FULLTEXTSEARCH_HOST:9200\",\"elastic_index\":\"nextcloud-aio\"}" php /var/www/html/occ files_fulltextsearch:configure "{\"files_pdf\":\"1\",\"files_office\":\"1\"}" # Do the index diff --git a/php/containers.json b/php/containers.json index 1ca7fa86a69..9b229b4eb90 100644 --- a/php/containers.json +++ b/php/containers.json @@ -131,7 +131,8 @@ "REDIS_PASSWORD", "NEXTCLOUD_PASSWORD", "TURN_SECRET", - "SIGNALING_SECRET" + "SIGNALING_SECRET", + "FULLTEXTSEARCH_PASSWORD" ], "volumes": [ { @@ -198,7 +199,8 @@ "INSTALL_LATEST_MAJOR=%INSTALL_LATEST_MAJOR%", "TALK_RECORDING_ENABLED=%TALK_RECORDING_ENABLED%", "RECORDING_SECRET=%RECORDING_SECRET%", - "TALK_RECORDING_HOST=nextcloud-aio-talk-recording" + "TALK_RECORDING_HOST=nextcloud-aio-talk-recording", + "FULLTEXTSEARCH_PASSWORD=%FULLTEXTSEARCH_PASSWORD%" ], "restart": "unless-stopped", "devices": [ @@ -598,7 +600,8 @@ "logger.org.elasticsearch.discovery=WARN", "http.port=9200", "xpack.license.self_generated.type=basic", - "xpack.security.enabled=false" + "xpack.security.enabled=false", + "FULLTEXTSEARCH_PASSWORD=%FULLTEXTSEARCH_PASSWORD%" ], "volumes": [ { @@ -613,6 +616,9 @@ ], "networks": [ "nextcloud-aio" + ], + "secrets": [ + "FULLTEXTSEARCH_PASSWORD" ] } ]