# BTCPayServer on Umbrel w/ Cloudflare Tunnels

**URL:** <https://community.umbrel.com/t/btcpayserver-on-umbrel-w-cloudflare-tunnels/10070>\
**Category:** General Discussion\
**Created:** [October 31, 2022, 3:26pm UTC](https://community.umbrel.com/t/btcpayserver-on-umbrel-w-cloudflare-tunnels/10070 "2022-10-31T15:26:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![x11r0n](https://avatars.discourse-cdn.com/v4/letter/x/c89c15/32.png) [@x11r0n](https://community.umbrel.com/u/x11r0n)\
**Post date:** [October 31, 2022, 3:26pm UTC](https://community.umbrel.com/t/btcpayserver-on-umbrel-w-cloudflare-tunnels/10070/1 "2022-10-31T15:26:52Z")

</div>

Just wanted to post the magic sauce needed to get BTCPayServer working well on Umbrel when using Cloudflare Tunnels to expose it to clearnet w/ TLS.

The solution was here all along: [Umbrel v0.5 (getumbrel/app-proxy) doesn't forward SSL headers · Issue #1428 · getumbrel/umbrel · GitHub](https://github.com/getumbrel/umbrel/issues/1428#issuecomment-1184584190)

I’m reposting here for visibility, as I searched high and low and couldn’t find this on my own.

Please follow:

```auto
ssh umbrel@umbrel.local (or the IP of your Umbrel server) Password is the same as Umbrel Web UI
nano ~/umbrel/app-data/btcpay-server/.env.app_proxy

```

Type:

```auto
PROXY_TRUST_UPSTREAM=true

```

Then save using: Control + X, then: Y, then:

Finally, run this command to restart BTCPay Server:

```auto
~/umbrel/scripts/app restart btcpay-server

```

This probably works for other reverse proxying services like Tailscale, or running your own nginx (perhaps from a NAS), etc.

---

<div class="post-metadata">

**Author:** ![neojack](https://avatars.discourse-cdn.com/v4/letter/n/a9a28c/32.png) [@neojack](https://community.umbrel.com/u/neojack)\
**Post date:** [September 26, 2024, 10:42am UTC](https://community.umbrel.com/t/btcpayserver-on-umbrel-w-cloudflare-tunnels/10070/2 "2024-09-26T10:42:54Z")

</div>

thanks a million, this works perfectly.

---

<div class="post-metadata">

**Author:** ![roberto188](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@roberto188](https://community.umbrel.com/u/roberto188)\
**Post date:** [January 18, 2025, 6:05am UTC](https://community.umbrel.com/t/btcpayserver-on-umbrel-w-cloudflare-tunnels/10070/3 "2025-01-18T06:05:13Z")

</div>

How did you get this to work?
