graylog 通过NGINX 反向代理配置

简介: graylog 3.0之前的版本在反向代理中存在bug,3.0版本已经修复不管是通过docker 安装,还是安装包 。配置基本上一样,只需要理解即可 ,下面为我截取的官网一些有帮助大家配置的截图,希望对大家有帮助

graylog 3.0之前的版本在反向代理中存在bug,3.0版本已经修复

具体参考: https://github.com/Graylog2/graylog2-server/issues/5702
Graylog 3.0.1 released on April 1st, 2019 fixes this issue:
Fix running Graylog web interface under a path prefix. Graylog2/graylog2-server#5702 Graylog2/graylog2-server#5703
In addition, new version fixes these other [issues](http://docs.graylog.org/en/3.0/pages/changelog.html).
graylog版本日志以及修改的问题:http://docs.graylog.org/en/3.0/pages/changelog.html

不管是通过docker 安装,还是安装包 。配置基本上一样,只需要理解即可 ,下面为我截取的官网一些有帮助大家配置的截图,希望对大家有帮助

20191218112647681.png

官网的教程:

http://docs.graylog.org/en/3.0/pages/configuration/web_interface.html#nginx

具体配置参考

20191218112148911.png

NGINX的核心配置已经截图贴出来,具体参考上面。

下面为graylog 核心配置

How does the web interface connect to the Graylog server?
The web interface is fetching all information it is showing from the REST API of the Graylog server. Therefore it needs to connect to it using HTTP(S). There are several ways how you can define which way the web interface connects to the Graylog server. The URI used by the web interface is determined in this exact order:
If the HTTP(S) client going to the web interface port sends a X-Graylog-Server-URL header, which contains a valid URL, then this is overriding everything else.
If http_external_uri is defined in the Graylog configuration file, this is used if the aforementioned header is not set.
If http_publish_uri is defined in the Graylog configuration file, this is used if the aforementioned http_external_uri is not set.
If none of the above are defined, http://$http_bind_address is used.
The web interface assets (e.g. the index.html, CSS and JavaScript files) are accessible at the URI root (/ by default) and the REST API endpoints are accessible at the /api path.
Example:
Setting http_bind_address to 10.0.0.1:9000 configures the Graylog server with the following URLs.
Web interface: http://10.0.0.1:9000/
REST API: http://10.0.0.1:9000/api/

20191218113952353.png2019121811293721.png

http_external_uri 这个你就理解为他可以通过此uri配置web interface 资源路径

[参考文档]

http://docs.graylog.org/en/2.4/pages/configuration/web_interface.html#configuring-webif

http://docs.graylog.org/en/3.0/pages/configuration/web_interface.html#nginx

https://github.com/Graylog2/graylog2-server/issues/5702


目录
相关文章
|
19天前
|
移动开发 前端开发 JavaScript
前端vue2、vue3去掉url路由“ # ”号——nginx配置(一)
前端vue2、vue3去掉url路由“ # ”号——nginx配置
54 0
|
19天前
|
JavaScript 前端开发 应用服务中间件
angular引入包、路由权限配置、打包问题与nginx配置问题(简单部署)
angular引入包、路由权限配置、打包问题与nginx配置问题(简单部署)
24 0
|
1月前
|
安全 应用服务中间件 Linux
linux nginx的配置总结
linux nginx的配置总结
19 0
|
19天前
|
前端开发 JavaScript 应用服务中间件
前端vue2、vue3去掉url路由“ # ”号——nginx配置(二)
前端vue2、vue3去掉url路由“ # ”号——nginx配置
59 0
|
4天前
|
应用服务中间件 nginx
nginx配置集群轮训策略
nginx配置集群轮训策略
12 0
|
5天前
|
安全 网络协议 应用服务中间件
一文读懂HTTPS⭐揭秘加密传输背后的原理与Nginx配置攻略
一文读懂HTTPS⭐揭秘加密传输背后的原理与Nginx配置攻略
|
6天前
|
域名解析 弹性计算 应用服务中间件
基于nginx反向代理实现OSS固定域名IP访问
本文基于阿里云OSS手册:https://help.aliyun.com/zh/oss/use-cases/use-an-ecs-instance-that-runs-centos-to-configure-a-reverse-proxy-for-access-to-oss,继续深入讨论如何利用nginx反向代理,实现固定的IP/域名访问OSS bucket。官方文档能够解决大部分的反向代理固定IP访问oss bucket的场景,但是对于必须使用域名作为endpoint的系统,会出现signatrue鉴权问题。本文继续在官方文档的基础上,将反向代理需要域名作为endpoint的场景补齐方案。
|
13天前
|
应用服务中间件 PHP nginx
php如何实现检测nginx配置的正确性
请确保在执行此操作时,PHP有足够的权限来执行Nginx命令和访问Nginx配置文件。另外,将上述代码嵌入到您的应用程序中时,要注意安全性,以防止潜在的命令注入攻击。
52 3
|
19天前
|
安全 应用服务中间件 网络安全
linux_nginx中添加ssl配置(open ssl)
linux_nginx中添加ssl配置(open ssl)
25 1
|
19天前
|
JSON JavaScript 前端开发
vue2_vite.config.js的proxy跨域配置和nginx配置代理有啥区别?
vue2_vite.config.js的proxy跨域配置和nginx配置代理有啥区别?
33 1