static-html/_plugin/kibana/app/kibana 404 (Not Found)
igodfinger opened this issue · comments
I host an instance, build and launch it by docker-compose, everything goes well but error shows up when I try to search something.
The error info: GET http://192.168.0.100:81/static-html/_plugin/kibana/app/kibana 404 (Not Found).
I did not find any configurations in the nginx_authorize_by_lua.conf about _plugin, neither found any directories named _plugin。 the below is my docker-compose-dev.yml:
version: '2.1'
services:
elastic:
container_name: elastic_g2p
build:
context: ../services/elastic
volumes:
- "../util:/util/"
ports:
- "9400:9200"
environment:
- http.host=0.0.0.0
- transport.host=127.0.0.1
- xpack.security.enabled=false
- path.repo=/util/elastic/backups
- http.cors.enabled=true
- http.cors.allow-origin=*
kibana:
container_name: kibana_g2p
build:
context: ../services/kibana
volumes:
- "../util:/util/"
ports:
- "5601:5601"
links:
- elastic:elasticsearch
environment:
- xpack.security.enabled=false
- XPACK_MONITORING_REPORT_STATS=false
- SERVER_BASEPATH=/kibana
api:
container_name: api
build:
context: ../services/api
volumes:
- "../util:/util/"
ports:
- "8088:8080"
environment:
- ES=${ES}
- SWAGGER_HOST=${SWAGGER_HOST}
nginx:
container_name: nginx_g2p
image: openresty/openresty:trusty
depends_on:
- api
volumes:
- "../util:/util/"
- "../services/nginx/nginx_authorize_by_lua.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro"
- "../services/nginx/authorize.lua:/usr/local/openresty/nginx/conf/authorize.lua:ro"
- "../services/nginx/.htpasswd:/usr/local/openresty/nginx/conf/.htpasswd"
- "../certs:/certs"
- "../services/nginx/g2p.html:/var/www/static-html/g2p.html"
- "../services/ui/index.html:/var/www/static-html/demo-ui/index.html"
- "../services/ui/index.js:/var/www/static-html/demo-ui/index.js"
- "../services/ui/config.json:/var/www/static-html/demo-ui/config.json"
- "../services/ui/favicon.ico:/var/www/static-html/demo-ui/favicon.ico"
ports:
- "444:443"
- "81:80"
environment:
- SERVER_NAME=${SERVER_NAME}
- ADMIN_EMAIL=${ADMIN_EMAIL}
links:
- elastic
- kibana
- api
By the way, this file is located on the cloud-setup.
and the below is my nginx_authorize_by_lua.conf
worker_processes 1;
error_log logs/lua.log notice;
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name var.cancer.cn;
location = / {
rewrite ^ /g2p last;
}
location /g2p {
rewrite ^ /static-html/g2p.html last;
}
location = /demo-ui {
return 301 https://$server_name/demo-ui/index.html;
}
location /demo-ui {
rewrite /demo-ui/(.*) /static-html/demo-ui/$1 last;
}
location /favicon.ico {
rewrite /(.*) /static-html/demo-ui/favicon.ico last;
}
location /static-html {
root /var/www;
}
location /admin {
auth_basic "admin";
auth_basic_user_file .htpasswd;
error_page 404 = @admin;
}
location @admin {
rewrite ^ /kibana/app/kibana;
}
location /kibana {
rewrite /kibana/(.*) /$1 break;
proxy_pass http://kibana:5601;
proxy_buffering off;
proxy_pass_request_headers on;
proxy_set_header Authorization "";
proxy_set_header Host $http_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 $scheme;
}
location /api {
proxy_pass http://api:8080;
proxy_buffering off;
proxy_pass_request_headers on;
proxy_set_header Authorization "";
proxy_set_header Host $http_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 $scheme;
}
}
}
Yes, it does not support https now.
I would like to know why, please give me some indications, thank you very much.
v0.11 branch is used.