Доброго времени года!
Kibana сконфигурирована на порту 5601.
Установил nginx в качестве реверс-прокси. Конфигурация nginx:
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 4096;
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/conf.d/*.conf;
server {
listen 0.0.0.0:80;
#listen [::]:80;
server_name msk-as01elast;
root /usr/share/nginx/html;
include /etc/nginx/default.d/*.conf;
error_page 404 /404.html;
location = /404.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
auth_basic off;
location / {
proxy_pass http://127.0.0.1:5601;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'update';
proxy_set_header Host $host;
proxy_cache_bypass $http_update;
}
}
}
В браузере при переходе по 80 порту получаю ошибку:
В error.log nginx:
2024/08/01 07:56:02 [error] 79650#79650: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.180, server: msk-as01elast, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:5601/", host: "msk-as01elast"
2024/08/01 07:56:02 [error] 79650#79650: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.180, server: msk-as01elast, request: "GET /nginx-logo.png HTTP/1.1", upstream: "http://127.0.0.1:5601/nginx-logo.png", host: "msk-as01elast", referrer: "http://msk-as01elast/"
2024/08/01 07:56:02 [error] 79650#79650: *12 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.1.180, server: msk-as01elast, request: "GET /poweredby.png HTTP/1.1", upstream: "http://127.0.0.1:5601/poweredby.png", host: "msk-as01elast", referrer: "http://msk-as01elast/"
Что делаю не так?