Add haproxy/mmproxy combo
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
26
hosts/jupiter-vps/configs/haproxy/default.nix
Normal file
26
hosts/jupiter-vps/configs/haproxy/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ ... }:
|
||||
{
|
||||
# TODO: Some way to automatically configure?
|
||||
services.haproxy = {
|
||||
enable = true;
|
||||
config = ''
|
||||
global
|
||||
maxconn 4096
|
||||
|
||||
defaults
|
||||
mode tcp
|
||||
timeout connect 5s
|
||||
timeout client 30s
|
||||
timeout server 30s
|
||||
|
||||
frontend http
|
||||
bind *:80
|
||||
bind *:443
|
||||
default_backend main
|
||||
|
||||
backend main
|
||||
server jupiter 10.0.0.2:80 send-proxy-v2
|
||||
server jupiter_ssl 10.0.0.2:443 send-proxy-v2
|
||||
'';
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user