How to forward URL to google cloud storage with masking from cloudflare?

I have a domain name called mydomain.com which is pointing to google app engine,

I have created a Google cloud storage and it’s structure looks below

https://storage.googleapis.com/<appName>/<bucketName>/image.jpg

My requirement is

media.mydomain.com/image.jpg should forward to https://storage.googleapis.com/<appName>/<bucketName>/image.jpg with url masking in Cloudflare

What rules I need to add in Cloudflare in order to achieve that

1 Like

There’s no ‘rule’ in Cloudflare you can define that would do that (Page Rules, for example, are a no-go), but it’s trivial with a Cloudflare Worker (paid service).

Edit: I’d be surprised if you couldn’t have the bucket accessible on your own domain name natively, though. But that’s one for Google.

Something like this I would imagine

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.