mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 14:06:50 +00:00
nextcloud: allow to configure FULLTEXTSEARCH_PROTOCOL
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
0e4b3b7a46
commit
a66445d443
2 changed files with 5 additions and 1 deletions
|
|
@ -972,6 +972,9 @@ if [ "$FULLTEXTSEARCH_ENABLED" = 'yes' ]; then
|
||||||
php /var/www/html/occ app:disable fulltextsearch_elasticsearch
|
php /var/www/html/occ app:disable fulltextsearch_elasticsearch
|
||||||
php /var/www/html/occ app:disable files_fulltextsearch
|
php /var/www/html/occ app:disable files_fulltextsearch
|
||||||
else
|
else
|
||||||
|
if [ -z "$FULLTEXTSEARCH_PROTOCOL" ]; then
|
||||||
|
FULLTEXTSEARCH_PROTOCOL="http"
|
||||||
|
fi
|
||||||
if ! [ -d "/var/www/html/custom_apps/fulltextsearch" ]; then
|
if ! [ -d "/var/www/html/custom_apps/fulltextsearch" ]; then
|
||||||
php /var/www/html/occ app:install fulltextsearch
|
php /var/www/html/occ app:install fulltextsearch
|
||||||
elif [ "$(php /var/www/html/occ config:app:get fulltextsearch enabled)" != "yes" ]; then
|
elif [ "$(php /var/www/html/occ config:app:get fulltextsearch enabled)" != "yes" ]; then
|
||||||
|
|
@ -994,7 +997,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_USER:$FULLTEXTSEARCH_PASSWORD@$FULLTEXTSEARCH_HOST:$FULLTEXTSEARCH_PORT\",\"elastic_index\":\"$FULLTEXTSEARCH_INDEX\"}"
|
php /var/www/html/occ fulltextsearch_elasticsearch:configure "{\"elastic_host\":\"$FULLTEXTSEARCH_PROTOCOL://$FULLTEXTSEARCH_USER:$FULLTEXTSEARCH_PASSWORD@$FULLTEXTSEARCH_HOST:$FULLTEXTSEARCH_PORT\",\"elastic_index\":\"$FULLTEXTSEARCH_INDEX\"}"
|
||||||
php /var/www/html/occ files_fulltextsearch:configure "{\"files_pdf\":true,\"files_office\":true}"
|
php /var/www/html/occ files_fulltextsearch:configure "{\"files_pdf\":true,\"files_office\":true}"
|
||||||
|
|
||||||
# Do the index
|
# Do the index
|
||||||
|
|
|
||||||
|
|
@ -237,6 +237,7 @@
|
||||||
"PHP_MEMORY_LIMIT=%NEXTCLOUD_MEMORY_LIMIT%",
|
"PHP_MEMORY_LIMIT=%NEXTCLOUD_MEMORY_LIMIT%",
|
||||||
"FULLTEXTSEARCH_ENABLED=%FULLTEXTSEARCH_ENABLED%",
|
"FULLTEXTSEARCH_ENABLED=%FULLTEXTSEARCH_ENABLED%",
|
||||||
"FULLTEXTSEARCH_HOST=nextcloud-aio-fulltextsearch",
|
"FULLTEXTSEARCH_HOST=nextcloud-aio-fulltextsearch",
|
||||||
|
"FULLTEXTSEARCH_PROTOCOL=http",
|
||||||
"FULLTEXTSEARCH_PORT=9200",
|
"FULLTEXTSEARCH_PORT=9200",
|
||||||
"FULLTEXTSEARCH_USER=elastic",
|
"FULLTEXTSEARCH_USER=elastic",
|
||||||
"FULLTEXTSEARCH_INDEX=nextcloud-aio",
|
"FULLTEXTSEARCH_INDEX=nextcloud-aio",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue