Support private containers and try to serve locally from the server

Created on 23 February 2022, over 2 years ago
Updated 3 November 2023, about 1 year ago

Private containers are currently not supported. We should add an option to serve files locally from the server, if the file does not exist, it will check the azure storage to download it. Also, we could increase the site performance considerably when creating image styles because we don't have to upload them to the storage.

📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

🇯🇴Jordan yahyaalhamad Palestine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States graper

    I have my eye on this and I am seeing something odd. When I upload a file, the thumbnail is showing correctly. Looking at the source it is a relative address with "azblob" as part of the path. After saving, when viewing or editing the page, the image path is an absolute path.

    Is it possible to have a switch to just output the relative azblob path? I know that this makes the webserver a proxy for all images, and would reduce performance of the site, but would be nice if it was that simple. This proxy mechanism is being done by the flysystem module, but that module doesn't support Azure storage yet with a supplemental module that has a proper release. This would mean that the file wouldn't need to be downloaded to the local.

    Performance could be mitigated by using varnish or a cdn, but still allow a private container on the azure side.

  • 🇨🇦Canada geoanders Nova Scotia 🍁

    The proxy idea might be the way to go.

    Haven't had much time to really look into this.

    We really need more help/maintainers on this project.

    Reach out if you would like to help maintain.

  • Status changed to Needs review about 1 year ago
  • 🇮🇳India mukhtarm

    Ok here is a workaround that is serving the private blob files directly using SAS token (We don't need to save locally to save the storage). Also resolves #15 📌 Support private containers and try to serve locally from the server Needs review . Thanks

Production build 0.71.5 2024