0

I have a Django application working on supereye.co.uk.

Django handles all URL routing such as supereye.co.uk/signin supereye.co.uk/watch etc.

I am also using Google Cloud Storage that is working with Google Cloud App Engine on gs://production2.supereye.co.uk

How shall I handle the routing so both App Engine and Storage can be accessible through the supereye.co.uk domain. For instance :

supereye.co.uk      -> Django App, Google Cloud App Engine
data.supereye.co.uk -> Google Cloud Storage bucket, gs://production2.supereye.co.uk

Is there any way to achieve this without relating Django App to bucket at all ?

Can the bucket be accessible by its own resources while using a proper https custom domail such as "https://data.supereye.co.uk" rather than for instance "https://storage.googleapis.com/production-supereye-co-uk/video/DFeMfXUk4Te/thumbnail/Mx73lhda8n8x.webp" ?

Is there any internal Google Cloud tool that will let me achieve this ?

london_utku
  • 1,070
  • 2
  • 16
  • 36
  • 1
    Hi @SuperEye, if you think my answer helped you, please consider accepting it by clicking the checkmark on the left side under the vote arrows and upvoting it. I'd really appreciate it, Thank you! – Zeenath S N Dec 31 '21 at 04:33

1 Answers1

1

As mentioned in the stackoverflow answer, you can do this using a load balancer. You can set up a URL map to match the desired paths, and point different requests to the backend bucket and app engine, respectively.

If you just wanna name your bucket with a domain name then I suggest you go through Domain-named bucket verification. This link focuses mainly on requirements for creating buckets with domain names.

Zeenath S N
  • 1,100
  • 2
  • 8