Replies: 2 comments
-
OK I got a chance to spend a bit more time looking at this and found a solution
The equivalent command line if doing it manually is : I'm still having a bit of trouble with the default admin password as a result of the (re-)init provider but I am sure I will figure that out |
Beta Was this translation helpful? Give feedback.
-
You can use gcsfuse to mount a GCS bucket into the filesystem. Does sftpgo care that an upload directory is mounted from GCS? I would guess it does not but I haven't tried it. When you do it this way, the reads/writes to the GCS bucket are authenticated based on the machine identity. So you don't need to create and download a .JSON key file and provision that in sftpgo. This will work if and only if the machine actually HAS a Google Cloud identity, in other words, only if sftpgo is running in GCE. If you are running sftpgo in some other host, then you still need to use the JSON key file. This is how I set up gcsfuse on a GCE-hosted VM running Debian, for use with the
That would need to be slightly different for use with sftpgo (a different user I suppose) but I don't know the specifics. |
Beta Was this translation helpful? Give feedback.
-
How can I automate the mounting of a cloud storage bucket and a few other config tweaks?
Right now, I can install and run, and do basic setup including admin for SFTPGO on Google Cloud.
I do this via terraform and cloud-init.
I can setup the bucket on the webgui correctly, it uses instance creds, i can sftp files inbound and they appear 👍
When I export / backup the config, the config files have different sections that are not mentioned in the sftpgo.json file/docs.
Can i add a fragment to the sftpgo.json file or can i feed in something else that lands in the config DB?
Beta Was this translation helpful? Give feedback.
All reactions