This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log-format '{"host":"%H","ident":"haproxy","pid":%pid,"time":"%Tl","haproxy":{"conn":{"act":%ac,"fe":%fc,"be":%bc,"srv":%sc},"queue":{"backend":%bq,"srv":%sq},"time":{"tq":%Tq,"tw":%Tw,"tc":%Tc,"tr":%Tr,"tt":%Tt},"termination_state":"%tsc","retries":%rc,"network":{"client_ip":"%ci","client_port":%cp,"frontend_ip":"%fi","frontend_port":%fp},"ssl":{"version":"%sslv","ciphers":"%sslc"},"request":{"method":"%HM","uri":"%[capture.req.uri,json(utf8s)]","protocol":"%HV","header":{"host":"%[capture.req.hdr(0),json(utf8s)]","xforwardfor":"%[capture.req.hdr(1),json(utf8s)]","referer":"%[capture.req.hdr(2),json(utf8s)]"}},"name":{"backend":"%b","frontend":"%ft","server":"%s"},"response":{"status_code":%ST,"header":{"xrequestid":"%[capture.res.hdr(0),json(utf8s)]"}},"bytes":{"uploaded":%U,"read":%B}}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "rubygems" | |
require "open-uri" | |
require "optparse" | |
require "csv" | |
port = "8081" | |
host = "localhost" | |
override_host = nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen front | |
bind :443 | |
mode tcp | |
tcp-request inspect-delay 2s | |
tcp-request content accept if { req_ssl_hello_type 1 } | |
acl is_host1 req.ssl_sni -n host1.example.com | |
use_backend bk_host1 if is_host1 | |
server local 127.1:1443 send-proxy | |
frontend ssl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 5167395d0b4b5f88181d3fd40420ecd2036440a8 Mon Sep 17 00:00:00 2001 | |
From: =?iso-8859-15?q?Herv=E9=20COMMOWICK?= <vr@exosec.fr> | |
Date: Mon, 7 Feb 2011 16:40:41 +0100 | |
Subject: [PATCH 1/4] PATCH : add accept-proxy support | |
--- | |
doc/configuration.txt | 26 ++++++- | |
include/common/standard.h | 25 ++++++- | |
include/proto/client.h | 1 + | |
include/types/buffers.h | 20 +++--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- stunnel-4.33/src/log.c 2010-02-04 12:25:01.000000000 +0100 | |
+++ stunnel-4.33.log.patch/src/log.c 2011-02-16 11:30:43.078766354 +0100 | |
@@ -107,6 +107,9 @@ | |
char text[STRLEN], stamp[STRLEN]; | |
struct LIST *tmp; | |
+ if (mode!=LOG_MODE_NONE && level>global_options.debug_level) | |
+ return; | |
+ | |
va_start(arglist, format); |