• 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

Custom config: Images on subdomain

Any easy way to do this?

I tried by activating the CDN feature, then fill with this: http://images.somedomain.com/ but all of my chevereto display went messed up.

So I reverted back, and still I haven't found a way to do this.
 
I don't see the point in making a folder visible as a sub-domain, it doesn't bring any benefit. The only thing that it could make a difference is if the image url gets shorter by using a shorter domain.

At this time the only way to achieve something similar to this will be to use an storage server and customizing the url there.
 
Maybe it doesn't see any benefit for you, for me it bring benefit, because I can give separate IP for images.somedomain.com

Set up a specially-configured httpd-caching, rather than globally affects my whole domain.

Try to be rationally, I've seen you only think your about ego (if 'you' think it's good then you implement it) and never care about other people needs.

A good software should be highly customizable, you can always put a toggle whether user want to enable or disable it.

Menus on the restaurants are heaps, not just meatball just because the restaurant owner likes meatball.

They also sells fried chicken even though maybe the chef doesn't eat chicken and prefer to eat fish.

I hope this make sense. But it's still up to you whether if you want to implement or not, since you're the 'god' of chevereto who created it.

I'm sorry for being critical, but I'm doing this just to make chevereto even better image uploading software for everyone.

Never crossed my mind to bring chevereto reputation down or something bad. It's a good software in any way and I love it.
 
Last edited:
At this time you can achieve what you need using a SFTP external storage, it will take you less than 5 minutes to set up everything. This is not about ego or anything like that, is about how you can achieve something and in this very second you can achieve what you need with a simple workaround. All the images will be uploaded to this external server, with their own IP, domain, cache settings, etc... So I don't know what I'm missing here.

If you don't want to do it in that way then I must evaluate how many people will benefit from adding something like this. Chevereto has a lot of clients and while you see this is a must, most of the other persons won't feel the same way and I know that because this is just the second time that this thing is requested vs countless request regarding comments, affiliates, etc. I must focus in what is most needed for everybody, not just you or me. I know that is sad for you to hear about it but what can I say, I've a lot of persons requesting features so I must care about those who will make the life easier for the most of them. You should know this already, you are client since 2011.

There are a forum where anybody can send his feedback and request things to add to the system and my job is to pick those features that will be useful for the most of the audience using Chevereto. Actually if I never cared about anyone then what is this?. You are just talking bad about me just to make me feel bad or make me look bad which should be because you feel frustrated.

I do care about what is needed and what is not needed. Point is that there are priorities and maybe this will be end-up being added but not now and you know why? Because you can simply go to Dashboard > Settings > External storage and achieve exactly what you need and you can also achieve it using CDN. If it worked or not for you that is something else, if you will be editing DNS zones and making a folder point to a different IP and things like that you must know what you are doing. That's why I told you to do the external storage way, because I know that it will be easier for you.

Anyway, I'm sorry if you feel this in that way.
 
Last edited:
Could you please show me what to enter in CDN? I just put http://images.somedomain.com and all of the style went messed up.

When you use CDN the thing that happens is that all the static local urls like http://demo.chevereto.com/images/image.jpg are changed to a CDN url like http://cdn.somedomain.com/images/image.jpg so you must put http://cdn.somedomain.com/ and the system does all the mapping.

Thing is that you can't expect to just add a CDN and that the thing will just work. The CDN must be configured to work with your website and here all the documentation regarding CDN: https://chevereto.com/docs/cdn Note that CDN is a distributed system, not an storage system.

When you want to actually use another server to store the images you must use an external server. There's no other way, there is also a documentation on external storage: https://chevereto.com/docs/storages
 
Was the style messed up because of the default handler configuration on the /images/.htaccess? Actually I'm avoiding the usage of External storage as it's impossible to be removed at the moment.
 
When you use CDN that affects all the local storage, that includes CSS and JS. When you use external storage that only affects the images being uploaded to that storage.
 
  1. Just wondering if we use ftp/sftp as external storage, so chevereto will access ftp all the time?
    Is there any delay if we try to access images? Like ftp need to process GET to pull data from the extrernal storage to chevereto's tmp folder then display it, or what?
  2. Can I use this hard code modification to modify the http://www.somedomain.com/images to http://images.somedomain.com ?
Actually... The current CDN implementation is sitewide, which means that it maps images, javascript, css, etc... Basically all the static resources. This means that /images (or any folder that you choose) will be always displayed in the forms and everything with the local path.

I've realized that there are some features missing regarding image naming and image URL that I could add in next releases, but for now the solution for you is to hack the app/lib/classes/class.image.php class. Look for the function fill() which populates the image URLs and just replace the base_url with your own url.

Find this:
PHP:
$image[$k] = file_exists($v) ? get_image_fileinfo($v) : NULL;

Add below (change to fit your URL):
PHP:
$image[$k]['url'] = str_replace(G\get_base_url(Settings::get('upload_image_path')), 'http://google.com', $image['url']);
 
Last edited:
External storage SFTP will be called just for image upload and image delete. Note that when doing image delete the system does it in bulk which is very fast.

When you use SFTP the system load is not that big and works very well. FTP in the other hand is recommended only for websites with low activity.

You could use the CDN thing to mod the image routing but that won't push the images to that external website. As you mentioned earlier you want this to be able to host the images in a different server so it won't be just change some lines. Anytime you want to save images in another server you must use an external storage and the system is built to work well even in websites with high activity.
 
Cool, I think I will start using external storage with sftp soon.

Ok, cool I think I got it ;)

Btw, I would like to make a feature requests below:
  1. Add file management (to copy/move/delete some/massively files between internal/external storages)
  2. Add ability to remove/detach external storage with options to move existing files to merge with local storage or move to another external storage or just simply remove it and delink all files.
Thank you :)
 
I should add those for 3.8 because I'm planning to focus that release in optimizations.
 
You need to perform an update query like this:
Code:
UPDATE chv_images SET image_storage_id=1;

That will point all those images to that storage, then you have to manually move the images from server A to server B. You can do that using something like rsync or maybe just making a .zip for the images folder, download it directly to the other server and extract this file.
 
You need to perform an update query like this:
Code:
UPDATE chv_images SET image_storage_id=1;

That will point all those images to that storage, then you have to manually move the images from server A to server B. You can do that using something like rsync or maybe just making a .zip for the images folder, download it directly to the other server and extract this file.
Works like charm :D

Btw, I tried to change back my local storage folder from i to images, but why all of my old images become inaccessible?
 
Back
Top