How to separate uploaded files to another server

I have 2 VPS, and I would like set 1 VPS only save upload files. and another 1 only run discourse program.

Is there any way to do it?

Hello :wave: Seems you looking for Configure an S3 compatible object storage provider for uploads

3 Likes

Hello, I understand it’s possible to save files to S3.
but how about if I want same files to another linux server?

Well to be clear, that’s not exactly the same question as what’s posed in the OP

If you simply want to share files between two Linux servers, there are a lot of options, which may or may not be appropriate for usage with Discourse running on separate VPS. Here’s a couple

  • NFS network filesystem, SMB share
  • SSHFS ssh filesystem
  • FUSE filesystem driver to mount your S3 as a local filesystem (or just use S3 directly)

In general I would just use S3 directly. You do not need to “run a second VPS just for storage” if you’re using S3

Not really. It would make more sense to have a load balancer and use both systems, but you’d still need assets smh uploads on s3.

1 Like