Hi everyone, we want to set up a cdn in order to avoid hosting the images in our instance

  • @rajudev@lemmy.ml
    link
    fedilink
    22 years ago

    I have setup just a hosted a folder and serving it over nginx. Whenever I need to use CDN, I just transfer the content to the folder and use the link to that file as CDN link.

    This is a very neat hack.

    Not a very good hack if you need to host a large number of files.

      • @rajudev@lemmy.ml
        link
        fedilink
        12 years ago

        No tips, just host a path to a folder. Make sure the permissions to that folder are correct and only linked files are accessible

  • @acabjones@lemmygrad.ml
    link
    fedilink
    12 years ago

    You want images not on local app server disk; do you want to host the files yourself (I.e. on VM disk)? Or are you open to a managed service like s3? What disk consumption are we at? Number of files? What kind of request volume and data throughout are we talking? How fast are those things growing?

    Depending on your hosting, S3 may well be less expensive, and it will def be simpler.

    If you’re forced to DIY you could look at seaweedfs, which is an HA horizontally scalable blob storage cluster which exposes an S3 compatible interface.

    Either way, someing like Pictrs might be nice over some kind of S3.