R
Railway11mo ago
Prentiss

SSH Workaround?

I have Directus deployed as a service via a Docker image. I need to provide the application the "path to key file on disk" via an environment variable to enable file storage. Any thoughts on how to go about this? Must I create a custom Dockerfile?
22 Replies
Percy
Percy11mo ago
Project ID: 1ccd180a-5a98-431c-af65-1f09bf8fec13
Prentiss
PrentissOP11mo ago
ProjectID=1ccd180a-5a98-431c-af65-1f09bf8fec13
Brody
Brody11mo ago
@Medim - think you can assist with this directus question
Prentiss
PrentissOP11mo ago
"Google Cloud Storage" to be specific.
Brody
Brody11mo ago
going to be blunt, there are better and easier storage methods you could use that don't require you to place files on disk for example, what's wrong with using the attached volume? that's already preconfigured for you
Prentiss
PrentissOP11mo ago
That was my first choice, however some of my client may fly through the current available storage. I want to ultimately move all of my clients over to Railway. Using GCS allows me to directly pass the storage cost to them.
Brody
Brody11mo ago
yeah that makes sense, but I do stand by my statement, an S3 compatible storage provider would definitely be the move putting a file onto disk (a volume) is generally not a straight forward task, and you definitely don't want to put that credential file in a repo, regardless if it's a private repo or not
Prentiss
PrentissOP11mo ago
Is there a way to directly access a volume, possibly storing the key file on there?
Brody
Brody11mo ago
directly, no, that's why I have said that it's generally not straightforward railway doesn't provide any kind of sftp access or a native filebrowser all file access for the volume has to go through the service it's attached to, that's why it wouldn't be straightforward
Prentiss
PrentissOP11mo ago
Okay, hear me out... using the Railway CLI, it is possible to create a custom Dockerfile which includes the key file, and deploy directly to a service bypassing the risks of storing within a repository?
Brody
Brody11mo ago
yes, railway up S3 was only a suggestion because it's going to be easier in the long run to use a service like backblaze b2, but now you've got me curious, you seem to really wanna use Google for this, why is that, if you don't mind me asking?
Prentiss
PrentissOP11mo ago
Google simply has a simpler user interface than AWS. First time hearing of backblaze b2. Looking into it now.
Brody
Brody11mo ago
oh no i would never recommend someone to use aws sorry if i was misleading
Prentiss
PrentissOP11mo ago
Successfully implemented using Storj. They're both web3 and s3 compatible. Thank you for your assistance @Brody
Brody
Brody11mo ago
oh perfect, that was actually going to be my second recommendation, guess i dropped the ball on just saying s3
Prentiss
PrentissOP11mo ago
No problem. You were a big help.
Brody
Brody11mo ago
happy to help! please stop closing the thread though
Medim
Medim11mo ago
in 1 hour i can, at the gym atm salute nvm seems like its fixed Now I'm curious @Prentiss, sorry for the ping and if I misinterpretated something, but are you using STORJ as STORAGE in Directus?
Brody
Brody11mo ago
STORJ via their s3 api, as far as i can tell
Medim
Medim11mo ago
Oh wow, that's super cool Gonna do that on my Directus instance didn't know storj had a sort of S3 Drop-in Gateway/Interface
Prentiss
PrentissOP11mo ago
Is actually working out great... so far at least. Good enough to where I many need to (no financial advice, lol).
Want results from more Discord servers?
Add your server