Git Product home page Git Product logo

Comments (4)

florian-ald avatar florian-ald commented on September 24, 2024 1

You made my Day. I totally overlooked this.

That's what happens if you only follow the instructions strictly, just copy&paste and don't look at the code carefully.

Thanks a lot Miranda

from graylog2-server.

drewmiranda-gl avatar drewmiranda-gl commented on September 24, 2024

Can you share your reverse proxy configuration? Can you verify that the reverse proxy is also preserving cookies?

from graylog2-server.

florian-ald avatar florian-ald commented on September 24, 2024

Hi,
i use the standard configuration as described in the instructions.

server
{
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name graylog.ald-vt.de;
    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/;
      proxy_pass http://127.0.0.1:9000;
    }
}

Unfortunately, I can't answer your question about the cookie because I don't know how to check it.
I have tested with different browsers in normal or incognito mode.
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.

from graylog2-server.

drewmiranda-gl avatar drewmiranda-gl commented on September 24, 2024

I was able to reproduce the issue as you describe. I found the issue is with the following line:

proxy_set_header X-Graylog-Server-URL https://$server_name/;

Because nginx is not using TLS/HTTP, the web browser is rejecting setting the authentication cookie:
image

If you chance change

proxy_set_header X-Graylog-Server-URL https://$server_name/;

to (note https is changed to http)

proxy_set_header X-Graylog-Server-URL http://$server_name/;

The issue is resolved.

from graylog2-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.