Cloudflare-tunnel: Pass the original client's IP address to BTCPayServer (#668)
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
{{ end }}
|
||||
|
||||
|
||||
{{ define "redirects" }}
|
||||
{{ if eq $.HostName "btcpay" }}
|
||||
{{ range $container := $.Containers }}
|
||||
@@ -35,6 +36,12 @@
|
||||
rewrite ^/lnd-rest/btc/(.*) /$1 break;
|
||||
proxy_pass http://lnd_bitcoin:8080/;
|
||||
}
|
||||
{{ end }}
|
||||
{{ if $container.Env.REAL_IP_HEADER }}
|
||||
{{ range $containerNetwork := $container.Networks }}
|
||||
set_real_ip_from {{ $containerNetwork.IP }};
|
||||
{{ end }}
|
||||
real_ip_header {{ $container.Env.REAL_IP_HEADER }};
|
||||
{{ end }}
|
||||
{{ if (eq $serviceName "bitcoin_rtl") }}
|
||||
location /rtl/ {
|
||||
|
||||
Reference in New Issue
Block a user