update elastic docs
This commit is contained in:
13
docker/config/elasticsearch.yml
Normal file
13
docker/config/elasticsearch.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
# 集群名称
|
||||
cluster.name: es-cluster
|
||||
# 节点名称
|
||||
node.name: es-node-1
|
||||
# 绑定host,0.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"] #本地只有一个节点,无法正常启动,先注释
|
||||
Reference in New Issue
Block a user