Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Custom Domain URI #13

Closed
michaelaguiar opened this issue May 31, 2017 · 4 comments
Closed

Custom Domain URI #13

michaelaguiar opened this issue May 31, 2017 · 4 comments

Comments

@michaelaguiar
Copy link

Looks like I can only set a domain to go directly to a bucket. Because of this, the ->url() method will return https://domain.com/domain.com/file.ext. -- the second domain.com being the bucket.

If I try to do domain.com/bucket_name/file.ext, I get permission denied even though the file is public.

Am I missing something?

@evinkuraga
Copy link

@michaelaguiar In your custom domain remove the s from httpS

Similar issue here. I get http://custom.domain.com/BUCKET/path/to/file.ext
Any way to remove the bucket name from the url entirely. Even if I put null in the bucket config, I still get an empty "/", which gives me:
http://customdomain.com//path/to/file.ext , which fails to load the file due to the incorrect absolute path.

@victorybiz
Copy link

@evinkuraga My bucket name is a custom domain static.domain.com which point to directly to my bucket.

Setting GOOGLE_CLOUD_STORAGE_API_URI=null, $disk->url('my_file.ext'); returns correctly with https://storage.googleapis.com/static.domain.com/my_file.ext

When this is set GOOGLE_CLOUD_STORAGE_API_URI=http://static.domain.com, it returns http://static.domain.com/static.domain.com/my_file.ext which is not valid instead of http://static.domain.com/my_file.ext.

Any fix?

@ajayfroiden
Copy link

@victorybiz You can set GOOGLE_CLOUD_STORAGE_API_URI=http://static.domain.com/

/ at the end

@michaelaguiar
Copy link
Author

Thanks everyone, this issue is closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants