btcpayserver-docker icon indicating copy to clipboard operation
btcpayserver-docker copied to clipboard

503 Service Temporarily Unavailable` response if CF proxy is enabled

Open ProTechEx opened this issue 2 years ago • 1 comments

Hi,

I registed a Domain with CF. I just a Subdomain with A Record which is redirected to the IP of my Oracle Cloud instace.

On that Oracle Cloud instace is BTCPay Server deployed via Docker.

On my Main Domain I run XenForo Community System, with a API based BTCPay Payment Gateway Addon.

When I am running demo order without enabling the CF Proxy every thing working well.

Once the Proxy is activated, I get as result:
resulted in a 503 Service Temporarily Unavailable response: Just a moment… <meta http-equiv=“Content-Type” conte (truncated…)

I have on CF active Firewall Rules:  

image

image1022×127 10.9 KB

If I deactive them, the 503 Service Temporarily Unavailable issue still exist if the proxy is enabled for the subdomain. Only if I deactive the Proxy, every thing is working fine.

I am grateful for every recommendation to solve the issue.

ProTechEx avatar Oct 03 '22 10:10 ProTechEx

I know it's a late response but these issues aren't very active so for you or anyone else. To run cloudflare proxy with BTCPayServer you must do 2 things:

  1. When running the BTCPayServer setup initially, you must DISABLE PROXYING on your DNS A and AAAA records so Let's Encrypt can verify and setup your SSL certificate. You can do this right before setup, and re-enable proxying on the DNS records right after setup is complete.
  2. You MUST set the SSL/TLS encryption mode to Full (strict).

Number two is causing your issue with cloudflare showing 503 Service Temporarily Unavailable.

CLimeyBLimey avatar Oct 11 '23 19:10 CLimeyBLimey