haproxy server static file, nginx is no longer needed

This commit is contained in:
goeranh 2026-02-28 02:10:09 +01:00
parent 65e6d0d5a0
commit 65589c1586
No known key found for this signature in database

View file

@ -138,29 +138,15 @@
}
];
};
nginx = {
enable = true;
virtualHosts."localhost" = {
listen = [
{
addr = "127.0.0.1";
port = 6942;
}
];
locations."/" = {
extraConfig = ''
try_files ${indexPage} =404;
'';
};
};
};
haproxy = {
enable = true;
config = ''
global
# schreibe globalen log ins journal ip -> app
log /dev/log format raw local0
maxconn 50000
#stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
# man könnte metriken über einen socket file statt einen lokalen port machen für user permission control
# stats socket /run/haproxy/admin.sock mode 660 level admin expose-fd listeners
tune.bufsize 32762
defaults