we want to avoid using a disk unit as possible, since our hosting is limited, i was thinking something about setting up an s3 bucket and use cloudfront, i have done this with some e-commerce applications so that’s where i’m heading my question to
Pictrs (image hosting software which we use for Lemmy) supports s3 as storage backend, so you could use that. However, migrating from local disk storage to s3 storage is currently not working and is being fixed. You might want to get in contact with the dev (asonix), hes very helpful.
The reason I recommended sshfs is that you can use it with any server, or even a desktop or raspberry pi. This approach is much cheaper than s3 afaik.
Your best option might be to setup sshfs to mount a folder from another server, and use that to store images.
https://www.cyberciti.biz/faq/how-to-mount-remote-directory-filesystems-with-sshfs-on-linux/
This will usually be rather slow, so you should also setup a cache for images in nginx.
https://www.nginx.com/blog/nginx-caching-guide/
we want to avoid using a disk unit as possible, since our hosting is limited, i was thinking something about setting up an s3 bucket and use cloudfront, i have done this with some e-commerce applications so that’s where i’m heading my question to
Pictrs (image hosting software which we use for Lemmy) supports s3 as storage backend, so you could use that. However, migrating from local disk storage to s3 storage is currently not working and is being fixed. You might want to get in contact with the dev (asonix), hes very helpful.
The reason I recommended sshfs is that you can use it with any server, or even a desktop or raspberry pi. This approach is much cheaper than s3 afaik.
deleted by creator
Can i haz a s3 bucket?
deleted by creator
problem with s3 is that while you might think it is you who has a bucket, it is really jeff bezos’ bucket
Bezos bucket brings the boyz to the yard
deleted by creator
deleted by creator
Removed by mod
An example
nginx
site caching config, battle-tested:https://0xacab.org/rysiek/fasada/-/blob/master/services/etc/nginx/sites/example.com.conf