|
From: | Michael Lynch |
Subject: | Re: Running multiple site from one binary install |
Date: | Tue, 19 May 2020 15:39:49 -0400 |
Hi Olivier,
Thanks!
My current setup is read-only because I’m just hosting an unchanging set of videos. So my process looks kind of like this:
/media/public
folder to Google Cloud Storage./mgoblin_media/media_entries
with my GCS bucket.At one point, I had a read-write version working by using gcsfuse:
https://github.com/mtlynch/mediagoblin-docker/blob/gcsfuse/entrypoint.sh
This is a blog post I wrote back then to explain the design:
https://mtlynch.io/retrofit-docker-gcs/
It’s too flaky and complicated for anything running in production though. In particular, updating mediagoblin.db
and trying to sync it to GCS is a pain because SQLite assumes a filesystem where locks are available, but they’re not available with gcsfuse.
Thanks,
Michael
On Mon 18 May 2020 at 21:11:20 -0400, Michael Lynch wrote:
>For my own MediaGoblin instance, I use nginx as well, but for a slightly
>different purpose. I use it for authentication and to redirect responses to
>files on Google Cloud Storage. All of my media is on Google Cloud Storage,
>so I use nginx as kind of a hack to rewrite MediaGoblin’s responses to
>point to GCS instead of locally.
That is neat! How do you handle the upload from MG to GCS?
--
Olivier Mehani <address@hidden>
PGP fingerprint: 4435 CF6A 7C8D DD9B E2DE F5F9 F012 A6E2 98C6 6655
Confidentiality cannot be guaranteed on emails sent or received unencrypted.
[Prev in Thread] | Current Thread | [Next in Thread] |