Graylog with NGINX

1. Describe your incident:

i installed a new ubuntu server with graylog and nginx according to instructions. Install went fine but i cannot use the nginx as a proxy.

Graylog work well if i configure http_bind_address to the ip of the server. When configure to localhost and use nginx to redirect i cannot log-in.

I see a error-message “Could not load stream - Loading streams failed with status: Fetch Error: There was an error fetching a resource: Unauthorized. Additional information: Not available”

I see following Error in chrome Developer:Tool

Request URL:
Request Method:
Status Code:
401 Unauthorized
Remote Address:
Referrer Policy:

2. Describe your environment:

  • OS Information: Ubuntu 22.04.4

  • Package Version: graylog-server 6.0.0-14
    nginx 1.18.0-6ubuntu14.4

  • Service logs, configurations, and environment variables:
    Installed all according instructions

3. What steps have you already taken to try and solve the problem?
I only change the http_bind_address from to the ip:9000. It should be a nginx problem.

listen 80 default_server;
listen [::]:80 default_server;

location / {
  proxy_set_header Host $http_host;
  proxy_set_header X-Forwarded-Host $host;
  proxy_set_header X-Forwarded-Server $host;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Graylog-Server-URL https://$server_name/;


4. How can the community help?
Hope you can give me a hint to solve the problem

Only the login process does not work. If I configure the graylog server with an IP and not with localhost and thus bypass the proxy, the login works. If I now configure everything back again and use the proxy again, graylog works as long as I remain logged in.