add logstash http_input support for nginx

remove cockpit support entirely
cleanup / housekeeping
This commit is contained in:
t3chn0m4g3
2024-01-05 21:31:13 +01:00
parent 0f7dc73f1a
commit 7ba5567e70
14 changed files with 128 additions and 162 deletions

View File

@ -96,12 +96,7 @@ server {
location / {
set_by_lua_block $index_file {
local cockpit = os.getenv("COCKPIT")
if cockpit == "false" then
return "index_light.html"
else
return "index.html"
end
return "index.html";
}
auth_basic "closed site";
auth_basic_user_file /etc/nginx/nginxpasswd;
@ -149,6 +144,7 @@ server {
return "http://127.0.0.1:64298";
end
}
proxy_pass $elasticsearch;
rewrite /es/(.*)$ /$1 break;
}