flant / loghouse

Ready to use log management solution for Kubernetes storing data in ClickHouse and providing web UI.
Apache License 2.0
923 stars 76 forks source link

Loghouse behind Nginx reverse proxy #92

Open ignatev opened 6 years ago

ignatev commented 6 years ago

Hi. I'm trying to provide access to loghouse UI through nginx reverse proxy. As I can see loghouse uses own nginx instance for serving UI. I'm trying to create rewrite rule on my proxy but nothing works and I'm getting a blank screen only. Reverse proxy config:

       set $loghouse "http://loghouse.loghouse.svc.cluster.local";

       location /loghouse/ {
            rewrite ^/loghouse/(.*) /$1 break;
            proxy_pass $loghouse;
            proxy_set_header Host $host;
            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 "https";
            auth_basic "Protected service";
        }

Please help me with setup.

diafour commented 5 years ago

This issue also prevents using loghouse through api proxy with url like this:

http://127.0.0.1:32769/api/v1/namespaces/loghouse/services/tabix:http/proxy/#/login