apricote / hcloud-upload-image

Quickly upload any raw disk images into your Hetzner Cloud projects!
MIT License
21 stars 2 forks source link

Local file instead of url #45

Closed LouKordos closed 2 weeks ago

LouKordos commented 3 weeks ago

Hi, is there a way to specify a local file path which will then be copied over via scp for example? Because looking at the source Code, I think only urls are currently supported and my Image is private enough that I don't want it on a public url. Thanks!

apricote commented 2 weeks ago

Hi, is there a way to specify a local file path which will then be copied over via scp for example?

Thats possible, though it would not use scp but instead do it in the Go code.

my Image is private enough that I don't want it on a public url

You can always use something like an S3 pre-signed URL with a limited lifetime, but it also works from a local file.