I'm trying to get a reverse nginx proxy working for Graylog v2.0-alpha.3 to 
access Graylog externally.

The Nginx settings are as follows:

Server
{
    listen      80;
    server_name example.com;

    location /api
    {
        proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header    Host $http_host;
        proxy_pass      http://localhost:12900/;
    }

    location /
    {
        proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header    Host $http_host;
        proxy_pass      http://127.0.0.1:9000;
    }
}

The server.conf is:

rest_listen_uri = http://127.0.01:12900/api/
rest_transport_uri = http://127.0.0.1/api/

I have tried various combinations but the only way I can get it to work is 
by setting the REST uri's to the external IP address of the server.
Even then it still doesn't proxy through port 80 but goes to port 12900 on 
the server which defeats the object of using the reverse proxy.


-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/b82a6388-fe9e-4c9c-9730-ce8b9cc77733%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to