当前位置: 首页> 汽车> 时评 > 重庆市建设工程信息网安全监督特种作业_公众号开发简单吗_域名归属查询_友情链接检测工具

重庆市建设工程信息网安全监督特种作业_公众号开发简单吗_域名归属查询_友情链接检测工具

时间:2025/8/26 22:24:27来源:https://blog.csdn.net/weixin_45310323/article/details/145781816 浏览次数: 0次
重庆市建设工程信息网安全监督特种作业_公众号开发简单吗_域名归属查询_友情链接检测工具

1、将ES的账号:密码通过Base64加密

假设账号密码如下:

  • 账号:elastic
  • 密码:elastic@huayunworld.com
echo -n 'elastic:elastic@huayunworld.com' | base64
ZWxhc3RpYzplbGFzdGljQGh1YXl1bndvcmxkLmNvbQ==

2、在 Nginx 配置中传递认证信息

location /es/ {proxy_pass http://es.huayunworld.com:9200/;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto $scheme;proxy_set_header Authorization "Basic ZWxhc3RpYzplbGFzdGljQGh1YXl1bndvcmxkLmNvbQ=="; # 认证信息,如何需要认证把此项注释掉.proxy_redirect off;
}

3、测试

curl http://127.0.0.1/es/
{"name" : "es1","cluster_name" : "docker-cluster","cluster_uuid" : "FgishdSnQF2iPmanRsmfEw","version" : {"number" : "7.17.6","build_flavor" : "default","build_type" : "docker","build_hash" : "f65e9d338dc1d07b642e14a27f338990148ee5b6","build_date" : "2022-08-23T11:08:48.893373482Z","build_snapshot" : false,"lucene_version" : "8.11.1","minimum_wire_compatibility_version" : "6.8.0","minimum_index_compatibility_version" : "6.0.0-beta1"},"tagline" : "You Know, for Search"
}
关键字:重庆市建设工程信息网安全监督特种作业_公众号开发简单吗_域名归属查询_友情链接检测工具

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: