Tyrone
Tyrone
CDCloudflare Developers
Created by Tyrone on 8/3/2023 in #workers-help
Enabling Firebase for Worker Custom Domain
I am trying to enable Firebase oauth for an app running via Worker. To register and prove I owned the domain i for the app , I purchased a new domain from Cloudflare and was able to then setup a subdomain for my app. I was able to add the TXT record required by Firebase to verify ownership. Then Firebase says that i need to add an A record for the subdomain with the IP address and displays "Needs Setup". Cloudflare DNS management says that the A records are managed by the Worker and I cant add a second one.
What is the right way to set up the site? Is using Workers the problem?
1 replies
CDCloudflare Developers
Created by Tyrone on 8/2/2023 in #general-help
Newbie local HTTPS error running existing Angular Bitbucket repository
I am new to Cloudflare and trying to prepare my Angular project with Firebase Auth and Messaging for deployment. Because the repository is on Bitbucket, I followed a process for manual deployment with plan to add bitbucket pipeline later. I added a wrangler.toml file in the root: name = "<cloudflare project name>" main = "src/cf-worker.ts" compatibility_date = "2023-07-24" [site] bucket = "<angular project dist/project_name folder>" and a worker (cf-worker.ts) in the src folder. I was able to deploy, completing the OAUTH login. When i run wrangler dev the site comes up and works except for the portion requiring HTTPS. The problem is that i am getting an error when i try: wrangler dev --local-protocol https I get the following error: kj/compat/tls.c++:501: error: error accepting tls connection; kj::mv(e) = kj/compat/tls.c++:74: failed: OpenSSL error; message = error:10000416:SSL routines:OPENSSL_internal:SSLV3_ALERT_CERTIFICATE_UNKNOWN stack: 103de1b5e 103de674e 103de6d98 103de75d0 103df1dc0 103df34c0 I need HTTPS to run a service-worker to get Firebase Messaging working
6 replies