Comments (6)
The default connection that elasticsearch-head attempts is to http://localhost:9200/ if you are running es on your own machine - this should work. If not check your es ports, check firewalls and other network security software. Maybe something is already running on that port? localhost traffic does not travel on the network - so firewalls shouldn't be a problem
This already works for most people
from elasticsearch-head.
I'm not running it on my local machine, but I would it to connect to localhost on the machine it is running on, so e.g. I don't need to leave port 9200 open to the world unnecessarily.
from elasticsearch-head.
so elasticsearch and elasticsearch-head use plain old HTTP (over port 9200) to talk. elasticsearch-head is just a web page, so don't expect it to do any fancy networking for you! You need to investigate network security - have a look at things like tunnelling over ssh or reverse proxies. These topics are beyond the scope of an elasticsearch-head issue though.
from elasticsearch-head.
I don't expect it to do networking for me. It's a question of where "localhost" resolves to. If it's just the browser resolving it, it will be my local machine.
For what I'm trying to achieve, think of how e.g. phpmyadmin on a remote server can connect to a mysql server instance on running on the same machine via localhost:3306. The remote machine only needs to run a web server on port 80, and the web server then connects to the mysql server on localhost:3306. To connect to that mysql instance via phpmyadmin, mysql does not need to be open to the world.
from elasticsearch-head.
Please understand the fundamental difference between phpmyadmin (which is server software - written in php and running on a server) compared to elasticsearch-head which is a HTML app running in a browser. They simply don't have the same networking / security capabilities. To achieve what you are asking I would need to write a php wrapper for es-head which duplicates the functionality of a reverse proxy. It's simpler for people to set up the network securely the way they want - perhaps involving off the shelf reverse proxy software. Also you need to understand what localhost means in a networking context. Your usage of it is very confusing.
from elasticsearch-head.
@furlongm What I do is to setup ssh tunnel to forward port 9200 to localhost:
ssh -L9200:localhost:9200 my.search.server
And everything in es head basically works as if ES is running on localhost.
from elasticsearch-head.
Related Issues (20)
- Unable to load in Brave browser HOT 3
- npm install 报错: HOT 2
- docker get error
- Bearer token authentication support HOT 1
- unable to login to elasticsearch-head HOT 1
- How to run elasticsearch-head permanently HOT 8
- How should I configure nginx proxy and elasticsearch-head (public network) HOT 2
- How to connect to ES via HTTPS? HOT 1
- 复合查询条件不生效 HOT 1
- Unable to install mobz/elasticsearch-head HOT 1
- Unable to install mobz/elasticsearch-head Part 2 HOT 1
- How to connect to elasticsearch 7 ? HOT 2
- 是否已经支持elasticsearch 8.0? HOT 2
- 推荐一下自己写的es管理工具 https://github.com/1340691923/ElasticView HOT 3
- world load fail HOT 1
- Chrome Web Store ElasticSearch Head installation link is broken HOT 2
- After install nothing happens in the UI HOT 2
- elasticsearch 8.6.0 cluster error HOT 1
- support for opensearch out of the box
- cors request did not successd
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-head.