remove unnecessary layer of tcp mode for stripping proxy, works just fine without it

This commit is contained in:
Thomas Lynch
2021-11-26 14:43:43 +11:00
parent c03a16214b
commit e651d25dbb
2 changed files with 5 additions and 12 deletions

View File

@ -12,18 +12,8 @@ defaults
timeout client 50000ms
timeout server 50000ms
frontend tor-proxy
#this can be a unix socket to tor, too but not between separate docker containers
bind *:80 accept-proxy
mode tcp
default_backend strip-tor-proxy
backend strip-tor-proxy
mode tcp
server forward unix@/var/run/haproxy-haproxy.sock check send-proxy
frontend http-in
bind unix@/var/run/haproxy-haproxy.sock accept-proxy
bind :80 accept-proxy
#forwardfor sets the circuit identifier sent by tor daemon in haproxy PROXY protocol header as the x-forwarded-for header
option forwardfor
@ -55,7 +45,9 @@ frontend http-in
default_backend servers
backend servers
server server1 nginx:80
#can alternatively use a socket
#server server1 unix@/var/run/haproxy-nginx.sock check
server server1 nginx:80 check
backend hcaptcha
server hcaptcha hcaptcha.com:443

View File

@ -1 +1,2 @@
localhost
ehbaiyb5cqqjgviglqcrbd3g7rj2gvc4jahiyyhupq6osz7hfrzgnzqd.onion