From 81830ce99f180eb29ff4f62bf854655d5d694a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20D=C3=BCren?= Date: Sun, 16 Mar 2025 20:09:41 +0100 Subject: [PATCH] Replace 'localhost' with 'IPADDRESS' throughout documentation for consistency --- CloudronManifest.json | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CloudronManifest.json b/CloudronManifest.json index 9a493ca..f159d65 100644 --- a/CloudronManifest.json +++ b/CloudronManifest.json @@ -25,7 +25,7 @@ ], "minBoxVersion": "7.0.0", "memoryLimit": 4294967296, - "postInstallMessage": "Elasticsearch is now installed and available for internal use only.\n\nConnection Information:\n- REST API: ```http://localhost:9200``` (from within other Cloudron apps)\n- Transport Protocol: port ```9300``` (for Elasticsearch clients)\n\nAuthentication:\n- Username: ```elastic```\n- Password: A secure random password has been generated and stored in ```/app/data/credentials.txt```.\n\nThe password can be retrieved from:\n1. The app logs\n2. By accessing the app container\n3. The file at ```/app/data/credentials.txt```\n\n### Important: Creating Indices\nBefore using Elasticsearch with applications like NextCloud, you need to create the necessary indices.\n\nFor NextCloud FullTextSearch:\n```\ncurl -X PUT \"http://elastic:PASSWORD@IPADDRESS:9200/nextcloud\" -H 'Content-Type: application/json' -d'\n{\n \"settings\": {\n \"index\": {\n \"number_of_shards\": 1,\n \"number_of_replicas\": 0,\n \"refresh_interval\": \"10s\"\n }\n }\n}\n'\n```\nReplace PASSWORD with your elastic user password and IPADDRESS with the Elasticsearch container's IP address.\n\nNote: SSL is disabled for HTTP connections for compatibility with most client applications.", + "postInstallMessage": "Elasticsearch is now installed and available for internal use only.\n\nConnection Information:\n- REST API: ```http://IPADDRESS:9200``` (from within other Cloudron apps)\n- Transport Protocol: port ```9300``` (for Elasticsearch clients)\n\nAuthentication:\n- Username: ```elastic```\n- Password: A secure random password has been generated and stored in ```/app/data/credentials.txt```.\n\nThe password can be retrieved from:\n1. The app logs\n2. By accessing the app container\n3. The file at ```/app/data/credentials.txt```\n\n### Important: Creating Indices\nBefore using Elasticsearch with applications like NextCloud, you need to create the necessary indices.\n\nFor NextCloud FullTextSearch:\n```\ncurl -X PUT \"http://elastic:PASSWORD@IPADDRESS:9200/nextcloud\" -H 'Content-Type: application/json' -d'\n{\n \"settings\": {\n \"index\": {\n \"number_of_shards\": 1,\n \"number_of_replicas\": 0,\n \"refresh_interval\": \"10s\"\n }\n }\n}\n'\n```\nReplace PASSWORD with your elastic user password and IPADDRESS with the Elasticsearch container's IP address.\n\nNote: SSL is disabled for HTTP connections for compatibility with most client applications.", "multiDomain": false, "tcpPorts": { "9300": { diff --git a/README.md b/README.md index 1d8f81c..e18302b 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ This package provides Elasticsearch for Cloudron, configured for internal use on After installation, Elasticsearch will be available at the following URLs: -- HTTP API: `http://localhost:9200` (from within other Cloudron apps) -- Transport port: `localhost:9300` (for Elasticsearch clients) +- HTTP API: `http://IPADDRESS:9200` (from within other Cloudron apps) +- Transport port: `IPADDRESS:9300` (for Elasticsearch clients) ### Authentication @@ -33,7 +33,7 @@ You can find the password in: To connect to Elasticsearch from another Cloudron app, use the following connection details: ``` -Host: localhost +Host: IPADDRESS Port: 9200 Protocol: http Username: elastic @@ -43,7 +43,7 @@ Password: Example connection using cURL: ```bash -curl -u elastic: http://localhost:9200 +curl -u elastic: http://IPADDRESS:9200 ``` ### Setting up Indices