Cluster Global API Browser and API Browser seems not right

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?

for api, i could curl example.io/graylog/api successfully.

however the node REST API is showing 172.23.0.1.

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.

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

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?

Do you mind sharing your NGINX config?

That would allow us to check in detail.

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;

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.