ElasticSearchoss中的ElasticSearch认证

yzxexxkh  于 2021-06-10  发布在  ElasticSearch
关注(0)|答案(0)|浏览(186)

我正在我的家庭网络上安装elasticsearch oss来存储传感器数据。我可以在ElasticSearch本身中启用任何类型的身份验证,还是需要通过反向代理进行身份验证?
目前在docker中运行elasticsearch和kibana的配置如下:

elasticsearch:
  image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.1
  restart: unless-stopped
  hostname: elasticsearch
  container_name: elasticsearch
  ports:
    - "9200:9200"
    - "9300:9300"
  environment:
    discovery.type: single-node
    bootstrap.memory_lock: "true"
    http.cors.enabled: "true"
    http.cors.allow-origin: http://localhost:1358,http://127.0.0.1:1358
    http.cors.allow-headers: X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
    http.cors.allow-credentials: "true"
  user: "1000"
  volumes:
    - /apps/elasticsearch:/usr/share/elasticsearch/data

kibana:
  image: docker.elastic.co/kibana/kibana-oss:7.10.1
  restart: unless-stopped
  hostname: kibana
  container_name: kibana
  ports:
    - "5601:5601"
  environment:
    SERVER_NAME: localhost:5601
    ELASTICSEARCH_HOSTS: http://elasticsearch:9200

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题