connect: {
server: {
options: {
hostname:'*',
port: 9100,
base: '.',
keepalive: true
}
}
}
this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://192.168.148.133:9200";
#将原来的localhost改为服务器ip
#追加内容
http.cors.enabled: true
http.cors.allow-origin: "*"
node.master: true
node.data: true
基本搞定!