blam
(Brian Lam)
November 17, 2019, 2:02pm
1
I got ngnix configured for reverse proxy.
It is okay to access example.io/graylog/api/api-browser/global/index.html
But i am seeing following url
API Browser of node is 172.23.0.1:9000/api.
Cluster Global API Browser is example.io/graylog/api/graylog/api-browser/global/index.html .
Is there anything wrong?
blam
(Brian Lam)
November 17, 2019, 2:03pm
2
for api, i could curl example.io/graylog/api successfully.
however the node REST API is showing 172.23.0.1.
jan
(Jan Doberstein)
November 18, 2019, 7:28am
3
the API Browser is the Graylog server http_publish_uri
what is the endpoint for each Graylog node and that is unique per Node. In a multi Cluster environment that URI is used to communicate in the cluster between each graylog node. This way you can connect to each nodes individual api browser
The Global API Browser is taking the http_external_uri
as source - That is the point where your browser is able to reach Graylog (cluster) and what will connect to the API Browser - not one specific.
As this is a new feature the documentation is not (yet) reflecting that.
blam
(Brian Lam)
November 18, 2019, 8:43am
4
Thanks Jan.
I have only one node running on the host example.io
and I have the following configs in server.conf.
http_bind_address = 0.0.0.0:9000
#http_publish_uri =
http_external_uri = http://example.io/graylog/
Is there anything I could do to have the correct url for API Browser and Global API Browser?
Thanks,
Brian
jan
(Jan Doberstein)
November 18, 2019, 8:50am
5
he @blam
you can always type in the URL yourself - regarding the button I guess you hit a bug with the global api browser.
would you please open a bug report over at Github?
jan
(Jan Doberstein)
November 18, 2019, 9:39am
6
Do you mind sharing your NGINX config?
That would allow us to check in detail.
blam
(Brian Lam)
November 18, 2019, 11:21am
7
server
{
listen 80;
server_name example.io;
include common.conf;
location /graylog/
{
include common_location.conf;
proxy_set_header X-Graylog-Server-URL http://$server_name/graylog/;
rewrite ^/graylog/(.*)$ /$1 break;
proxy_pass http://172.17.0.1:9000;
}
location /
{
return 404;
}
}
common.conf
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
common_location.conf
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 Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Port $server_port;
system
(system)
Closed
December 2, 2019, 11:27am
8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.