Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test config not working #144

Open
richbai90 opened this issue Apr 10, 2019 · 4 comments
Open

Test config not working #144

richbai90 opened this issue Apr 10, 2019 · 4 comments

Comments

@richbai90
Copy link

For some reason I cannot get the test config to work as implemented in the readme. I'm not bothering with authorization at the moment, just setting the X-Proxy-User header and moving on, simply to test that the config is working.

Here are my configs:

nginx

http {
    
server {
  listen 8080;
  listen [::]:8080;

  server_name server.example.com;

  location / {
        #rewrite /sparkle/(.*) /$1 break;
        proxy_pass http://kibana:5601;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
        add_header 'X-Proxy-User' 'supportworks';
  }
}

kibana

xpack.spaces.enabled: false
elasticsearch.hosts: [http://localhost:19200]
elasticsearch.requestHeadersWhitelist: [ X-Proxy-User, cookie ]
own_home.session.secretkey: the-password-must-be-at-least-32-characters-long
own_home.session.isSecure: false
own_home.local.groups: [ common01, common02 ]
own_home.elasticsearch.url: http://elasticsearch:9200
xpack.security.enabled: false
server.host: 0.0.0.0

Kibana Elasticsearch and nginx all run in docker using docker-compose. Nginx is exposed to my local machine on port 80. I can see that the headers are set correctly

image

But when I go to own home I get nothing

image

Have I missed anything?

@Yullin
Copy link

Yullin commented Apr 22, 2019

HI, richbai90
with this option elasticsearch.hosts: ["http://localhost:19200"] ,
I got error

kibana: FATAL  ValidationError: child "elasticsearch" fails because ["hosts" is not allowed]

Do u have this problem ?
My kibana version is 6.5.4

@wtakase
Copy link
Owner

wtakase commented Apr 22, 2019

Hi Yullin,

you can use elasticsearch.url: http://localhost:19200 instead of elasticsearch.hosts: ["http://localhost:19200"] in v6.5.4.

@Yullin
Copy link

Yullin commented Apr 22, 2019

@wtakase thanks very much , I was stuck with this for very long time, It's a great help.

@Yullin
Copy link

Yullin commented Apr 22, 2019

and ,your nginx config about x-proxy-user should be "proxy_set_header X-PROXY-USER $remote_user;"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants