Files
elasticsearch/docker/config/elasticsearch.yml
2022-11-30 15:36:26 +08:00

13 lines
581 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 集群名称
cluster.name: es-cluster
# 节点名称
node.name: es-node-1
# 绑定host0.0.0.0代表当前节点的ip
network.host: 0.0.0.0
# 是否支持跨域默认为false
http.cors.enabled: true
# 当设置允许跨域,默认为*,表示支持所有域名,如果我们只是允许某些网站能访问,那么可以使用正则表达式。
# 比如只允许本地地址。 /https?:\/\/localhost(:[0-9]+)?/
http.cors.allow-origin: "*"
# 初始化主节点
cluster.initial_master_nodes: ["es-node-1"] #本地只有一个节点,无法正常启动,先注释