mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
remove unnecessary layer of tcp mode for stripping proxy, works just fine without it
This commit is contained in:
@ -12,18 +12,8 @@ defaults
|
|||||||
timeout client 50000ms
|
timeout client 50000ms
|
||||||
timeout server 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
|
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
|
#forwardfor sets the circuit identifier sent by tor daemon in haproxy PROXY protocol header as the x-forwarded-for header
|
||||||
option forwardfor
|
option forwardfor
|
||||||
@ -55,7 +45,9 @@ frontend http-in
|
|||||||
default_backend servers
|
default_backend servers
|
||||||
|
|
||||||
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
|
backend hcaptcha
|
||||||
server hcaptcha hcaptcha.com:443
|
server hcaptcha hcaptcha.com:443
|
||||||
|
@ -1 +1,2 @@
|
|||||||
localhost
|
localhost
|
||||||
|
ehbaiyb5cqqjgviglqcrbd3g7rj2gvc4jahiyyhupq6osz7hfrzgnzqd.onion
|
||||||
|
Reference in New Issue
Block a user