ext_addr="78.47.22.189" ext_addr6="2a01:4f8:c2c:d06c::1" honk_port="31337" table { 127.0.0.1 } table { ::1 } http protocol https { match request header append "X-Forwarded-For" value "$REMOTE_ADDR" match request header append "X-Forwarded-By" \ value "$SERVER_ADDR:$SERVER_PORT" match request header set "Connection" value "close" match request path "/*icon.*" forward to tcp { sack, backlog 128 } } relay wwwtls { listen on $ext_addr port https tls protocol https forward to port $honk_port check tcp forward to port http check http "/icon.png" code 200 } relay wwwtls6 { listen on $ext_addr6 port https tls protocol https forward to port $honk_port check tcp forward to port http check http "/icon.png" code 200 }