about summary refs log tree commit diff
path: root/tools/nixery/server/main.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-10-28T17·19+0100
committerVincent Ambo <github@tazj.in>2019-10-28T21·31+0100
commit790bce219cf9acf01de3257fcf137a0a2833529e (patch)
treea26922af66344e3d08d42b87e50371e1f888bdc4 /tools/nixery/server/main.go
parent167a0b32630ed86b3a053e56fa499957872d7b38 (diff)
feat(server): Add filesystem storage backend config options
The filesystem storage backend can be enabled by setting
`NIXERY_STORAGE_BACKEND` to `filesystem` and `STORAGE_PATH` to a disk
location from which Nixery can serve files.
Diffstat (limited to 'tools/nixery/server/main.go')
-rw-r--r--tools/nixery/server/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/nixery/server/main.go b/tools/nixery/server/main.go
index 282fe9773a73..f4f707313f22 100644
--- a/tools/nixery/server/main.go
+++ b/tools/nixery/server/main.go
@@ -202,6 +202,8 @@ func main() {
 	switch cfg.Backend {
 	case config.GCS:
 		s, err = storage.NewGCSBackend()
+	case config.FileSystem:
+		s, err = storage.NewFSBackend()
 	}
 	if err != nil {
 		log.WithError(err).Fatal("failed to initialise storage backend")