_repo_backend = ProxyBackend { name = "be_repo" ssl_sni = "repo.librecloud.online" mode = "tcp" balance = "roundrobin" option = "tcp-check" server_name = "repo" server_host_ip = "$network_private_ip" server_port = 3000 server_ops = "check fall 3 rise 2" } if server.provider != Undefined and server.provider == "aws": _https_in_bind = [ {ip = "$network_internal_ip", port = 443 }, { ip = "$network_private_ip", port = 443 } ] else: _https_in_bind = [ {ip = "$network_internal_ip", port = 443 }, { ip = "$network_private_ip", port = 443 }, { ip = "$network_public_ip", port = 443 } ] taskserv = Proxy { proxy_version = "2.9" proxy_lib = "/var/lib/haproxy" proxy_cfg_file = "haproxy.cfg" run_user = "haproxy" run_group = "haproxy" run_user_home = "/home/haproxy" https_in_binds = _https_in_bind #https_in_binds = [ {ip = "$network_internal_ip", port = 443 }, { ip = "$network_private_ip", port = 443 }, ] https_options = [ "tcplog", "dontlognull" ] https_log_format = "%H %ci:%cp [%t] %ft %b/%s %Tw/%Tc/%Tt %B %ts %ac/%fc/%bc/%sc/%rc %sq/%bq" backends = [ ] # backends = [ _repo_backend ] }