haproxy server static file, nginx is no longer needed
This commit is contained in:
parent
65e6d0d5a0
commit
65589c1586
1 changed files with 3 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue