Merge pull request #3138 from nextcloud/enh/noid/add-fts-password

add password to FTS
This commit is contained in:
Simon L 2023-08-17 10:01:02 +02:00 committed by GitHub
commit 6f154eebb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View file

@ -705,7 +705,7 @@ if [ "$FULLTEXTSEARCH_ENABLED" = 'yes' ]; then
php /var/www/html/occ app:update files_fulltextsearch php /var/www/html/occ app:update files_fulltextsearch
fi fi
php /var/www/html/occ fulltextsearch:configure '{"search_platform":"OCA\\FullTextSearch_Elasticsearch\\Platform\\ElasticSearchPlatform"}' 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\"}" php /var/www/html/occ files_fulltextsearch:configure "{\"files_pdf\":\"1\",\"files_office\":\"1\"}"
# Do the index # Do the index

View file

@ -134,7 +134,8 @@
"REDIS_PASSWORD", "REDIS_PASSWORD",
"NEXTCLOUD_PASSWORD", "NEXTCLOUD_PASSWORD",
"TURN_SECRET", "TURN_SECRET",
"SIGNALING_SECRET" "SIGNALING_SECRET",
"FULLTEXTSEARCH_PASSWORD"
], ],
"volumes": [ "volumes": [
{ {
@ -201,7 +202,8 @@
"INSTALL_LATEST_MAJOR=%INSTALL_LATEST_MAJOR%", "INSTALL_LATEST_MAJOR=%INSTALL_LATEST_MAJOR%",
"TALK_RECORDING_ENABLED=%TALK_RECORDING_ENABLED%", "TALK_RECORDING_ENABLED=%TALK_RECORDING_ENABLED%",
"RECORDING_SECRET=%RECORDING_SECRET%", "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", "restart": "unless-stopped",
"devices": [ "devices": [
@ -613,7 +615,8 @@
"logger.org.elasticsearch.discovery=WARN", "logger.org.elasticsearch.discovery=WARN",
"http.port=9200", "http.port=9200",
"xpack.license.self_generated.type=basic", "xpack.license.self_generated.type=basic",
"xpack.security.enabled=false" "xpack.security.enabled=false",
"FULLTEXTSEARCH_PASSWORD=%FULLTEXTSEARCH_PASSWORD%"
], ],
"volumes": [ "volumes": [
{ {
@ -628,6 +631,9 @@
], ],
"networks": [ "networks": [
"nextcloud-aio" "nextcloud-aio"
],
"secrets": [
"FULLTEXTSEARCH_PASSWORD"
] ]
} }
] ]