aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-06-05 22:18:24 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-06-05 23:00:46 +0100
commitb8af9fe60f27353bdd5933ed37508b30d4290046 (patch)
treefcc12e2f39f9fe4d7aa7d37fd4114309d3362c38 /cmd
parenta52d19e9e78d08643ffd4aee0483515d8bae2939 (diff)
Add AWS S3 and Google GCS virtual filesystems.
This allows the signing key to be read directly from S3 using a path like /s3/<bucket>/<path/to/signing.key> or /gcs/<bucket>/<path/to/signing.key>.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cashierd/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/cashierd/main.go b/cmd/cashierd/main.go
index 1b1035c..9a162d7 100644
--- a/cmd/cashierd/main.go
+++ b/cmd/cashierd/main.go
@@ -24,6 +24,7 @@ import (
"github.com/nsheridan/cashier/server/auth/github"
"github.com/nsheridan/cashier/server/auth/google"
"github.com/nsheridan/cashier/server/config"
+ "github.com/nsheridan/cashier/server/fs"
"github.com/nsheridan/cashier/server/signer"
"github.com/nsheridan/cashier/templates"
)
@@ -199,6 +200,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
+ fs.Register(&config.AWS)
signer, err := signer.New(config.SSH)
if err != nil {
log.Fatal(err)