How to use google cloud storage instead of s3?

Discourse seems to use the fog gem, which supports many cloud services, including google cloud storage. But, is discourse currently just written to work with s3 as te cloud storage, or can it be already used with google cloud storage?

1 Like

Right now for simplicity we are focusing on S3. So either you store stuff locally, on your server, or you store it on Amazon S3.

Apart from this:

is there any other s3-specific parts? (Seems like onebox doe snot render the right code line).

If not, all we need is Fog::Storage.new(gcs_options) instead of Fog::Storage.new(s3_options). The rest is handled by fog.

Nothing prevents you from writing your own custom google_cloud_storage_store. And yes, you should probably use the s3_store as a starting point.