• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • ๐Ÿ˜Œ This community is user driven. Be polite with other users.
    • ๐Ÿ‘‰ Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • ๐Ÿ’ธ Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Google Cloud URL Mapping - My Custom URL breaks image

Kayz

Chevereto Member
๐ŸŽฏ Description of the issue

I remember getting this to work previously last year, however for some reason it is not working now or i am doing it all wrong.

โœ… I have setup Google Cloud storage correctly, my images upload and delete as normal.

โœ… Chevereto by default provides the following url map: https://storage.googleapis.com/<bucket> which i have been able to change to https://storage.googleapis.com/my-bucket all images upload and delete fine. All the urls to the images now show a google url https://storage.googleapis.com/my-bucket followed by the actual image hosted on Google Cloud.

โŒ When i edit the URL Map to display my custom URL i.e. https://www.mydomain.com/ all the urls to the images show my url as expected https://www.mydomain.com/image/2019... however the actual image does not display despite it being uploaded onto Google Cloud? It only works if i revert back to https://storage.googleapis.com/my-bucket

It looks like a permission issue possibly for not displaying the image?

I'd be grateful if somebody can help me or provide a mini tutorial in how i can achieve what i want to.

Thank you

โ–ถ ๐Ÿšถโ€Reproduction steps
  1. Go to Dashboard > Settings > External Storage > Google Cloud Storage > URL Mapping
๐Ÿ˜ข Unexpected result

The image does not display from Google cloud despite being uploaded after changing the url mapping to my domain.

๐Ÿ“ƒ Error log message

No error messages, image does not show.
 
Last edited:
So it's not going to work that way, the way you do. ๐Ÿ˜‰

The reason for the URL in Chevereto is not without reason: https://storage.googleapis.com/<bucket>/

If you use this external storage, everything newly uploaded will be stored there and not on your local server where www.YOURDOMAIN.com points out.

To implement this you would have to go to your provider (domain) and there a DNS CNAME entry for example Create store.YOURDOMAIN.com which shows on https://storage.googleapis.com/<bucket>/.
If you have done that, you can also enter store.YOURDOMAIN.com at URL in Chevereto, but not www.YOURDOMAIN.com because the script is on it.
 
@DeCysos is right, that is a CNAME that you have to setup. I ignore if Google changed how that thing gets configured, you should check their documentation just in case.

There could be also local issues, maybe you are overriding the host definition for that hostname?

Worth checking, and this is very trivial I've seen it many times. Just double check everything ๐Ÿ˜‰
 
So it's not going to work that way, the way you do. ๐Ÿ˜‰

The reason for the URL in Chevereto is not without reason: https://storage.googleapis.com/<bucket>/

If you use this external storage, everything newly uploaded will be stored there and not on your local server where www.YOURDOMAIN.com points out.

To implement this you would have to go to your provider (domain) and there a DNS CNAME entry for example Create store.YOURDOMAIN.com which shows on https://storage.googleapis.com/<bucket>/.
If you have done that, you can also enter store.YOURDOMAIN.com at URL in Chevereto, but not www.YOURDOMAIN.com because the script is on it.

Yes i have also explored this option. The image uploads onto Google Cloud but the image does not show on my website?

I setup CNAME:

imagehost.mydomain.com - TTL 14400 - CNAME - c.storage.googleapis.com.

In Chevereto URL I have https://imagehost.mydomain.com

The image upload works, the image url changed but the image does not show?
 
@DeCysos is right, that is a CNAME that you have to setup. I ignore if Google changed how that thing gets configured, you should check their documentation just in case.

There could be also local issues, maybe you are overriding the host definition for that hostname?

Worth checking, and this is very trivial I've seen it many times. Just double check everything ๐Ÿ˜‰

I have been through it so many times!

What do you mean by overriding the host definition? I have access to the DNS Zones which i am able to amend for the domains.

It's so trivial it's giving me a headache that i am unable to resolve something so simple!? Worst of it all i have done cname changes before for other work and it has worked... but this is driving me crazy!
 
If in a client machine (the one you use to access www) you have override the host definition (/etc/hosts) that could be causing the problem. Is just a thought.

Regarding the CNAME, check using this: https://mxtoolbox.com/CNAMELookup.aspx

Thanks @Rodolfo i have fixed the problem. The CNAME wasn't working due to CloudFlare, i have now opened this on cloudflare, refreshed my browser all is now working.

I have a 2 related follow up questions.

1. It does not work if i use (www) to map the url i.e. https://www.imagehost.mydomain.com i am forced to use https://imagehost.mydomain.com without the www? Can i implement www?

2. Instead of using a dub domain such as imagehost.mydomain.com there's no way to use a sub directory instead? i.e. mydomain.com/imagehost i'm guessing if i want to do that i will have to host the whole site on Google Cloud?
 
Glad to know that you fixed it.

About the other questions, please note that our support is for Chevereto issues. This whole topic isn't about Chevereto but how you setup a CNAME.

I recommend you to document yourself about how to use the CNAME in the way you are describing.
 
Back
Top